#cybrid_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1229805836898144277
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ no, you can't force our Pricing Table to first direct your customers through your registration flow. It sounds like you may want to force them through that flow before you show the Pricing Table to them, create a Customer for them in Stripe, and then create a CustomerSession to pass to the rendered Pricing Table:
https://docs.stripe.com/payments/checkout/pricing-table#customer-session
If you decide to build your own, you won't be able to query data about a Pricing Table you build in Stripe. Instead you will likely want to pull data from the Products and Prices that you created, and have your UI create Checkout Sessions for your customers based on what products/prices they select.
That is quite unfortunate. This basically makes the embeddable pricing table unusable on the front page. Do you agree?
And pulling the pricing from the API is not an option for the client-only apps, since I cannot use the secret key there. This means that I will have to keep a local copy of the pricing either in the code or in firebase.
You could use just the object IDs. But I agree you likely don't want to create the Checkout Sessions client side, you likely want to do that server-side where you can protect the inputs being used.
The only possible option coming to mind, is to build a Pricing Table with all custom CTAs, where the custom call-to-action is a redirect to your signup flow.
But I'm still not sure you could build what you want with only client-side code using that approach.
I think you are only allowed a single custom cta
Also, custom CTA doesn't show prices, so defeats the purpose.
But if it were allowed to replace button with custom CTA (not one of three pre-labeled buttons, but a free text with free action), it would be totally doable on client side. I only need this to show pricing on the front page, then, once they sign up, I would just show the normal pricing table
Ah, yeah, that looks right.
LOL rather looks wrong, but understood ๐
Doesn't seem possible, I'm pretty sure you're going to need to custom build this. But I'm also going to file feedback that this is something you'd be interested in seeing offered in the future.
Ha, nope, I meant it looks like you're right
Would be great, thanks.
Just exposing pricing table content as a json would go a long way in this.
(with publishable key)
considering the javascript is iframing a html file (in pricing table implementation), I get the feeling that this is deliberate to NOT expose pricing, but I'm not sure what is the reason.
I've gotten that feedback filed
Thanks! That's all for now then ๐