@@ -18,6 +18,11 @@ const plans = reactive([
1818 monthly: null ,
1919 annually: null ,
2020 },
21+ stripe: {
22+ monthly: null ,
23+ annually: null ,
24+ },
25+
2126 requests: {
2227 rps: 3 ,
2328 rpd: 100_000 ,
@@ -38,6 +43,11 @@ const plans = reactive([
3843 monthly: 149 ,
3944 annually: 119 ,
4045 },
46+ stripe: {
47+ monthly: " cN2dTe5ygb0V9DG6oo" ,
48+ annually: " 7sI8yU5ygd934jm001" ,
49+ },
50+
4151 requests: {
4252 rps: 10 ,
4353 rpd: 500_000 ,
@@ -58,6 +68,11 @@ const plans = reactive([
5868 monthly: 149 ,
5969 annually: 119 ,
6070 },
71+ stripe: {
72+ monthly: " fZe7uQ1i0glfdTW5km" ,
73+ annually: " eVaaH2f8Qb0VbLOcMP" ,
74+ },
75+
6176 requests: {
6277 rps: 10 ,
6378 rpd: 500_000 ,
@@ -78,6 +93,11 @@ const plans = reactive([
7893 monthly: 299 ,
7994 annually: 239 ,
8095 },
96+ stripe: {
97+ monthly: " 00g2aw4ucfhbbLObIM" ,
98+ annually: " eVa02o1i05GBaHK9AF" ,
99+ },
100+
81101 requests: {
82102 rps: 30 ,
83103 rpd: 1_500_000 ,
@@ -95,6 +115,13 @@ const plans = reactive([
95115])
96116const selectedPlan = ref (0 )
97117const selectedBilling = ref (" annually" )
118+
119+ const getPaymentLink = () => {
120+ const key = plans[selectedPlan .value ].stripe [selectedBilling .value ]
121+
122+ if (! key) return
123+ return ` https://buy.stripe.com/${ key} `
124+ }
98125 </script >
99126
100127<template >
@@ -194,14 +221,20 @@ const selectedBilling = ref("annually")
194221
195222 <Flex direction =" column" align =" center" gap =" 8" >
196223 <Button
197- link =" https://api-docs.celenium.io/ "
224+ : link =" getPaymentLink() || ' https://api-docs.celenium.io' "
198225 target =" _blank"
199226 type =" primary"
200227 size =" small"
201- :disabled =" plans[selectedPlan].name !== 'Basic'"
228+ :disabled =" !getPaymentLink() && plans[selectedPlan].name !== 'Basic'"
202229 wide
203230 >
204- <Text color =" black" >Start with {{ plans[selectedPlan].name }}</Text >
231+ <Text color =" black" >
232+ {{
233+ getPaymentLink() || plans[selectedPlan].name === "Basic"
234+ ? `Start with ${plans[selectedPlan].name}`
235+ : "Not Available"
236+ }}
237+ </Text >
205238 </Button >
206239
207240 <Text size =" 12" weight =" 500" color =" tertiary" >Secure payment via Stripe</Text >
0 commit comments