#1000ml
1 messages · Page 1 of 1 (latest)
It seems like you're calling the pricing table API using your client-side code, what's the usecase here?
To show the pricing table in our app allowing our users to upgrade
This works perfectly fine in our "test" environment
To render a pricing table, all you need is
https://stripe.com/docs/payments/checkout/pricing-table#embed
I have never seen someone use the API for this. https://api.stripe.com/ usually expects your secret API key
We can change our code for this, but why would this work in "test"? Does "test" not require a secret key?
No idea why its working in test mode, it shouldn't.
Are you following a guide for this flow? If so, can you share the link?
We believed that we had, however it seems our frontend devs did something different?!?!
Yeah I don't know what they did, if they used the secret API keys client-side then that's a security risk
Ok, we'll update.
Another (hopefully really quick) question... Is it possible to copy / migrate "test" data over to "live"? Specifically things such as a pricing table?
Luckily I searched the UI code and there are no secret keys anywhere in it and they don't rely on them from environment variables or secrets, so we are safe
Another (hopefully really quick) question... Is it possible to copy / migrate "test" data over to "live"? Specifically things such as a pricing table?
I think you can copy the products/prices using the dashboard
Don't think you can copy the whole table though
Ok, was trying to get the table over. I'll have to recreate 😄