Hey! I have built out my Stripe stuff in test and have deployed it to live but I want to test it in Live to make sure it all works there - is that possible? Is there some dummy CC card info that will work in Production mode (or can I use the test dummy CC info?)? The reason I want to test is that some of my workflows do different things when bubble is in test (due to the different Stripe codes for live & test - pain in the ass). I’m just not 100% it all will work fine in Production.
Thanks!
Steve.
No. A good habit to get into if you use different webhook URLs for live/test is to use ‘isn’t live version:formatted as text’ as an API call parameter.
So, when ‘isn’t live version:formatted as text’ is yes, url = https://yourapp.bubbleapps.io/version-test/api/1.1/wf/yourendpoint’ and when it’s no (i.e it IS the live version), url = https://yourapp.bubbleapps.io/api/1.1/wf/yourendpoint
This is preferable as you don’t have to update all of the URLs in your entire app every time you deploy to live or want to test in test mode. It’ll just use the correct URL depending on whether the app is in live or dev mode.
Stripe does allow you to import webhook endpoints from test mode into live mode - just copy them all across and remove /version-test/ from all of them.
Also, if you really need to test can’t you just pay using a company card (or personal card if you don’t have a company) and you’ll only lose the Stripe fees because you’ll get back most of the payment as income from the site.
3 Likes
Valuable info. Thank you for posting that!