I am getting this error: Stripe error No such plan: plan_*******; a similar object exists in test mode, but a live mode key was used to make this request.
I have triple checked the plans and they look the same for Test and Live mode. What am i doing wrong? HELP Please
The plan names should be identical for this to work the way Bubble has set it up.
The Stripe dashboard will suggest to you that you not create your own name for a plan but let Stripe make one for you. This is bad advice in this context.
Set up your plans as a pair. Their names in Test and Live mode should be identical. Then it will work.
Ya, thats what i was trying to do. I ended up just deleting both plans in Live and Test and creating them all over again. Seemed to work. I hope. Thanks for the quick response. Now the image for making a payment is not coming up. It should be my icon but for some reason when i updated the image in settings in bubble it shows blank now. ?
@emmanuel is this a bug or does it take a while to load the image? It used to show up fine, then i updated it and now it is just blank. Not sure why.
Oh, Thanks for helping me out though, i really appreciate it. Not cool to have LIVE payments not working. Definitely wanted to fix that asap. Thanks for always helping!
Hi guys,
Experiencing the exact same problem.
“Stripe error: No such plan: plan_XXXXXXX; a similar object exists in test mode, but a live mode key was used to make this request.”
I have exact same name in live and in test on Stripe dashboard. We’re talking about the “pricing plan”, right? Not the “product”.
But the product has the same name also anyway.
In my case, that’s the “Month” plan then, under the product “Premium”.
I have my big launch tomorrow, everything is ready, been working on this for weeks… I kinda freak out.
If you have any tip, that would me so much appreciated @keith@J805 .
Well, the error message says you got the object part right, but you’re using your live key rather than your test key to make a test request (at least that’s how I read it)…
I’m not sure I understand what you’re saying @nocodeventure. @keith yes, but bubble does not let us specify when to use which one.
In test version, everything worked perfectly
Should be good though, I’m not using my live keys in test:
Go to the live mode, then copy the plan ID, looks like plan_XXXxxxXXxxXX
Now in Bubble
The trick where I got stuck, is actually to check “Dynamically specify a plan”, that’s where you can enter your plan ID!
And it works, no more " Stripe error: No such plan: plan_XXXXXxxxXXXX; a similar object exists in test mode, but a live mode key was used to make this request.
Thanks! This helped a lot.
One last step. How do you specific the price??
When Dynamically specify plan is unchecked, I can pick the price ID. When Dynamically specify plan is checked, I can insert the plan ID, but then how do I specify the price?
I did not have this need/use case, but I’m not sure it’s doable. In my understanding the price is linked to a plan, defined in Stripe.
For a different use case, which is presenting the price in various currencies, I created a plan for each currency, and I dynamically display the buttons to subscribe on bubble.
With subscriptions you can’t set the price like we would want to normally. If you want to do a dynamic subscription, one hack I have done before is make the subscription $1 in Stripe. Then you choose the qty as dynamic. So then you can choose the price dynamically. Otherwise you can do two different workflow steps, one at one plan and the other as a different plan. That way you can set different plans in Stripe and you choose which one to subscribe to.
I think I may have found a workaround, but I have only tested it in dev mode so far.
Instead of putting the conditional “Isn’t live version” in the “Subscribe the user” step, put it in the workflow itself. In my case I ended up with 1 product with 2 price variations and 4 workflows.