Stripe error: remember to fill your P Key and S Key

Hello, I tried to connect stipe with the developer data and everything worked well, but if I add the public key and sk to go live, I get the following error:

“Subscribe the user to a plan: Remember to fill your secret and public key to stripe”

But I added both.

You need to add your development keys as well

Thank you, no it works but I get the next problem if I add the test data:

And I cant choose the product ID like in the test mode I have to add it manually.
Maybe I make a mistake here.

Yea, sounds like you also need to setup test products in stripe as well as live products.

When you’re testing your bubble app, bubble is going to default to a testing state, making stripe also in test mode.

You’ll need both live keys and dev keys on the plugin.

You’ll also need live and test data in stripe.

If I add the test key I can see only few products.
How can I see the live products too to choose them?

What you should do, after creating a new price, store the price in your data base and refer back to it by Dynamically specify plan checkbox

Now I added the Product ID in the DB and search for that, this is working.

I added test and live keys too.
I created in Stripe test product and a live product.
But If set a workflow I added the data for the live product, because I want to go live for the user subscriptions.

If I try with text data and test products everything works well.
This is the last error I got.

It show me that a test mode key is used to make this request. The ID you can see is for a live product.

With live stripe data, it will work when you’re running the app outside of bubble.

You’re getting the erros bc it’s looking for test data. Your live data will work.

1 Like

Ah you mean because I dint publish the app, it searching for the test data.
Let me publish it and get back to you.

I published it:

You can click on Register to see the error too.

Now I get this error

Invalid APi Key but I just copied and pasted it, I check also few times, its same API public and secret I added.

take out Bearer and republish

1 Like

done, but now I get total new error :cry:

Is there any change that I have to do in the workflow if I use live data, because that setting works in test mode.

Can you see the error if you refresh the page and try again to register?

What’s the error?

Here

It would still seem as tho the plan you’re trying to subscribe them to is coming in null.

So why don’t you use “static text” and put the exact price you want to subscribe them to there, to see that it works. Then, set it up to Dynamic.

If you used live data from stripe, don’t preview with bubble, you’ll have to actually go to your site as a user.

1 Like

Bro I found the problem for the last error. If I add the Plan I ID in the DB and ask for that I get that error. If i past it directly in the workflow, it works.

Thank you so much last 6 days I tried to many things :joy: I should write directly here.
Do you work in the support for bubble?

1 Like

Essentially

In dev mode for testing i’ll have a price_1234 for testing in stripe. If I am done with testing and wish to publish my app to live i’ll need live stripe price_5678

1 Like

Thank you so much for you help bro :+1: If you need anything just let me know :pray:

1 Like

You’re very welcome, glad I could help.

This topic was automatically closed after 70 days. New replies are no longer allowed.