# Stripe Implementation Issue

**URL:** <https://forum.bubble.io/t/stripe-implementation-issue/110638>\
**Category:** Plugins\
**Created:** [September 9, 2020, 9:51am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638 "2020-09-09T09:51:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjk](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.bubble.io/u/mjk)\
**Post date:** [September 9, 2020, 9:51am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/1 "2020-09-09T09:51:10Z")

</div>

Hi Guys,

App complete- finally! I have gone to activate the plan and it works fine, except the stripe charging.  
I am being charged as a test Stripe transaction in Live mode.

Tried to change the stripe pricing plans to the live plan which shows up as an option to select in Live mode see attached

 ![Screen Shot 2020-09-09 at 10.40.55](https://us1.discourse-cdn.com/bubble/original/3X/8/5/85fab602ada5457aa79062411a48a773707a72c1.png)

but to select this to change i need to go to development and it does not show up in development- see attached

 ![Screen Shot 2020-09-09 at 10.42.21](https://us1.discourse-cdn.com/bubble/original/3X/a/d/adba5ed90d25d428f590bcad08ed2f7e1ca092a4.png)

I must be missing something fundamental here but not sure what it could be!

Any help?

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 9, 2020, 10:03am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/2 "2020-09-09T10:03:01Z")

</div>

Hey @mjk

Are you sure you inserted the Live API keys correctly in Stripe’s plugin configuration (in the Plugins tab)? I think that would solve your issue. Don’t hesitate to replace the test keys in the dev input fields by the live keys as well. Just be aware of the fact that you’ll need to replace them back when you run tests.

Alternatively you also have the option to define the plan dynamically by copy/pasting the unique ID that you can find in your Stripe dashboard.

Hope that helps  
Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![mjk](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.bubble.io/u/mjk)\
**Post date:** [September 9, 2020, 10:06am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/3 "2020-09-09T10:06:43Z")

</div>

Hi Ambroise,

Thank you for your response.

I am confident that the Live API keys are correctly inserted. I also tried your second point but the dev mode won’t allow me to view any live plans in Stripe.

I have not tried your third point, do you have an example?  
Thanks again!

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 9, 2020, 10:10am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/4 "2020-09-09T10:10:56Z")

</div>

@mjk

In your Stripe dashboard, go to Products and click on a product you created.  
Then take the API ID in the Pricing section:

 ![API_ID](https://us1.discourse-cdn.com/bubble/original/3X/6/9/69d6d6f04440c9c09725419ab028d7135134cbbf.png)

Back to your Bubble app, choose ‘Inform a plan dynamically’ instead of ‘Pick one plan’ in your Stripe action configuration, and paste the API ID there

Cheers  
Ambroise

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![mjk](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.bubble.io/u/mjk)\
**Post date:** [September 9, 2020, 10:41am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/5 "2020-09-09T10:41:43Z")

</div>

Hi Ambroise,

Thank you for this.

I tried to subscribe in live mode and received this error:

 ![Screen Shot 2020-09-09 at 11.40.16](https://us1.discourse-cdn.com/bubble/original/3X/b/c/bc3dda7c3821e7fe40af9cb5f15fd73615b89e81.png)

The API ID i posted dynamically is a live product.

Thanks again

---

<div class="post-metadata">

**Author:** ![mjk](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.bubble.io/u/mjk)\
**Post date:** [September 9, 2020, 10:49am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/6 "2020-09-09T10:49:38Z")

</div>

Apologies Ambroise, it appeared it didnt save! it works. but strangely the pop up box- your card was not charged at this time comes up even though we charge the card.

Any reason why this would be the case?

---

<div class="post-metadata">

**Author:** ![ambroisedlg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ambroisedlg/32/61966_2.png) [@ambroisedlg](https://forum.bubble.io/u/ambroisedlg)\
**Post date:** [September 9, 2020, 11:09am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/7 "2020-09-09T11:09:36Z")

</div>

@mjk it’s surely due to an action in your workflow, feel free to post a screenshot

> **Need extra help?**
>
> [Book a free 15 minutes call](https://ambroisedlg.bubbleapps.io) - happy to help if I can

---

<div class="post-metadata">

**Author:** ![mjk](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.bubble.io/u/mjk)\
**Post date:** [September 9, 2020, 11:15am UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/8 "2020-09-09T11:15:44Z")

</div>

Hi Ambroise, see attached inc Workflow.

 ![Screen Shot 2020-09-09 at 12.13.31](https://us1.discourse-cdn.com/bubble/original/3X/2/f/2fef688dd1a3acec0fde8b5f11050c7678b611b0.png) ![Screen Shot 2020-09-09 at 12.13.10](https://us1.discourse-cdn.com/bubble/original/3X/a/1/a136342dfe51efc9d6fa6a29a939b0712fbc2cc6.png)

---

<div class="post-metadata">

**Author:** ![simon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/simon/32/8895_2.png) [@simon](https://forum.bubble.io/u/simon)\
**Post date:** [September 9, 2020, 3:09pm UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/9 "2020-09-09T15:09:56Z")

</div>

You need to store that plan name in the DB and called it dynamically rather than trying to hard code it in Dev. Does that plugin allow you to do that?

Simon

---

<div class="post-metadata">

**Author:** ![mjk](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.bubble.io/u/mjk)\
**Post date:** [September 9, 2020, 3:49pm UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/10 "2020-09-09T15:49:37Z")

</div>

I don’t know that answer to that Simon unfortunately. I’ve also now realised that if a User drops out of above payment process they can still access the User account. Any tips on this loophole?

---

<div class="post-metadata">

**Author:** ![simon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/simon/32/8895_2.png) [@simon](https://forum.bubble.io/u/simon)\
**Post date:** [September 9, 2020, 3:52pm UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/11 "2020-09-09T15:52:40Z")

</div>

Maybe don’t create a user account before Stripe - just ask for an email (depends on how you are setting up the customer and what plugins you are using)

Simon

---

<div class="post-metadata">

**Author:** ![mjk](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mjk](https://forum.bubble.io/u/mjk)\
**Post date:** [September 9, 2020, 4:17pm UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/12 "2020-09-09T16:17:55Z")

</div>

Unfortunately the Stripe plugin doesnt allow me to charge unless someone has signed up to an account. So I guess that solves the Stripe ID with User ID. Still stuck with the issue of restricting access to the user area if payment is unsuccessful, or failed.

My understanding on what stripe data to request from a webhook is very limited. Theres plenty of content on the Stripe.JS plugin but little on the stripe by bubble plugin.

What references do you use on stripe data webhooks for failed payments?

---

<div class="post-metadata">

**Author:** ![dan8](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dan8/32/33110_2.png) [@dan8](https://forum.bubble.io/u/dan8)\
**Post date:** [September 9, 2020, 4:20pm UTC](https://forum.bubble.io/t/stripe-implementation-issue/110638/13 "2020-09-09T16:20:51Z")

</div>

Put your live API keys into the dev fields in the plugin.

Close the app editor then reopen. The plans should then appear. Select the plan and deploy.

Afterwards put the dev keys back in the dev fields.
