+
+ Entity Recognition Credits
+ $5 USD
+
+
+ -
+ Enough credits to process about 200 pages of A4 text using a
+ standard sized font
+
+
+
+
+
+ Purchase Credits
+
+
+
+
+
+ Text Extraction Credits
+ $5 USD
+
+
+ - Text extraction credits to process 200 images
+
+
+
+
+ Purchase Credits
@@ -109,6 +143,10 @@ import { onMounted, ref } from "vue";
import { initializePaddle } from "@paddle/paddle-js";
import { ElButton } from "element-plus";
+const props = defineProps({
+ displayOnly: { type: Boolean, required: true },
+});
+
const pricing = {
development: {
assistant: {
@@ -119,6 +157,14 @@ const pricing = {
priceId: "pri_01htbs2ws69sfb2ffsc6ja1mwc",
quantity: 1,
},
+ textExtraction: {
+ priceId: "pri_01j2fze6r2ecy86ygfhdfbbnjr",
+ quantity: 1,
+ },
+ entityRecognition: {
+ priceId: "pri_01j2fzfef6s0hqdxc40q4xnn8q",
+ quantity: 1,
+ },
},
production: {
assistant: {
@@ -129,6 +175,14 @@ const pricing = {
priceId: "pri_01htc281zscjy7z0zgbcknps6q",
quantity: 1,
},
+ textExtraction: {
+ priceId: "pri_01j2fz8vd990v0g44gp90nw7rh",
+ quantity: 1,
+ },
+ entityRecognition: {
+ priceId: "pri_01j2fzc28gk5ry77npqa3b8ea1",
+ quantity: 1,
+ },
},
};
@@ -139,6 +193,8 @@ let items;
let paddle;
onMounted(async () => {
+ if (props.displayOnly) return;
+
const params = new URLSearchParams(window.location.search);
let environment;
try {
@@ -192,25 +248,36 @@ onMounted(async () => {
paddle = await initializePaddle(config);
});
-function purchaseGeneralCredits() {
+function purchaseCredits(type) {
checkoutCompleted.value = false;
checkoutFailed.value = false;
paddle.Checkout.open({
- items: [items.general],
+ items: [items[type]],
customer: {
email,
},
});
}
-function purchaseAssistantCredits() {
- checkoutCompleted.value = false;
- checkoutFailed.value = false;
- paddle.Checkout.open({
- items: [items.assistant],
- customer: {
- email,
- },
- });
-}
+// function purchaseGeneralCredits() {
+// checkoutCompleted.value = false;
+// checkoutFailed.value = false;
+// paddle.Checkout.open({
+// items: [items.general],
+// customer: {
+// email,
+// },
+// });
+// }
+
+// function purchaseAssistantCredits() {
+// checkoutCompleted.value = false;
+// checkoutFailed.value = false;
+// paddle.Checkout.open({
+// items: [items.assistant],
+// customer: {
+// email,
+// },
+// });
+// }
diff --git a/src/vue-components/Product.vue b/src/vue-components/Product.vue
index 0dceffa..c38869c 100644
--- a/src/vue-components/Product.vue
+++ b/src/vue-components/Product.vue
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/src/vue-components/Terms.vue b/src/vue-components/Terms.vue
index 8bdc665..5411796 100644
--- a/src/vue-components/Terms.vue
+++ b/src/vue-components/Terms.vue
@@ -1,5 +1,5 @@
-
+
@@ -16,21 +16,19 @@
Subscription and purchase of credits indicates acceptance of the
- Terms and Conditions of use.
Our
- Privacy Policy
+ Privacy Policy
tells you what data we collect, where we collect it and how it's used.
See
- /docs/guide/configuration/data-processing.htmlCloud Services and Data Processing
to find out how and where your data is processed.