# Stripe Subscription Payments

**URL:** <https://forum.bubble.io/t/stripe-subscription-payments/168590>\
**Category:** Questions\
**Created:** [September 10, 2021, 6:00am UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590 "2021-09-10T06:00:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melior\_Devteam](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/melior_devteam/32/236399_2.png) [@Melior\_Devteam](https://forum.bubble.io/u/Melior_Devteam)\
**Post date:** [September 10, 2021, 6:00am UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590/1 "2021-09-10T06:00:26Z")

</div>

Good day,

I have currently setup my app using the Stripe plugin so that when my customers click a button it collects a payment and subscribes them to a plan (monthly payment). How do I go about making it so that when the payment is not successful it removes them from the plan?

---

<div class="post-metadata">

**Author:** ![bestbubbledev](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/bestbubbledev/32/116378_2.png) [@bestbubbledev](https://forum.bubble.io/u/bestbubbledev)\
**Post date:** [September 10, 2021, 7:37am UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590/2 "2021-09-10T07:37:40Z")

</div>

I have never done this, but there must be a response from Stripe API that comes back to you whether the transaction was Successful or Not. Then probably somewhere from a workflow you should get this figured out.

If this wasn’t helpful at all, remember your post just moved up on a Forum Dashboard. Still a reason to like my comment 😃

---

<div class="post-metadata">

**Author:** ![mateusproto](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mateusproto/32/81621_2.png) [@mateusproto](https://forum.bubble.io/u/mateusproto)\
**Post date:** [September 10, 2021, 12:06pm UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590/3 "2021-09-10T12:06:36Z")

</div>

@Melior_Devteam

After you insert the " Subscribe the user to a plan" action you could insert a “Terminate this workflow” action with the following conditions:

1st. The result of previous step

> **[Data Sources](https://manual.bubble.io/core-resources/data/data-sources#result-of-previous-step)**

2nd. Use one of these conditions:

![Screen Shot 2021-09-10 at 09.03.36](https://us1.discourse-cdn.com/bubble/original/3X/1/0/10cb68bdede08b3a355c38ef11b3bd4d99b839ec.png)  
 ![Screen Shot 2021-09-10 at 09.04.17](https://us1.discourse-cdn.com/bubble/original/3X/1/9/194ccb857d1e4663fb01972b125f4349ae01c630.png)  
 ![Screen Shot 2021-09-10 at 09.04.32](https://us1.discourse-cdn.com/bubble/original/3X/e/4/e40dd690c73fd1239e276374cc8489245d131955.png)

I hope this helps!

---

<div class="post-metadata">

**Author:** ![Melior\_Devteam](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/melior_devteam/32/236399_2.png) [@Melior\_Devteam](https://forum.bubble.io/u/Melior_Devteam)\
**Post date:** [September 10, 2021, 2:35pm UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590/4 "2021-09-10T14:35:23Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/a/3/a33f8ac0a9ce82042690eab07cde7ed2836254cf.png)  
Is this how it’s supposed to work? @mateusproto

---

<div class="post-metadata">

**Author:** ![mateusproto](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mateusproto/32/81621_2.png) [@mateusproto](https://forum.bubble.io/u/mateusproto)\
**Post date:** [September 10, 2021, 3:02pm UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590/5 "2021-09-10T15:02:23Z")

</div>

I prefer this way:

![Screen Shot 2021-09-10 at 09.04.32](https://us1.discourse-cdn.com/bubble/original/3X/e/4/e40dd690c73fd1239e276374cc8489245d131955.png)

---

<div class="post-metadata">

**Author:** ![Melior\_Devteam](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/melior_devteam/32/236399_2.png) [@Melior\_Devteam](https://forum.bubble.io/u/Melior_Devteam)\
**Post date:** [September 10, 2021, 3:13pm UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590/6 "2021-09-10T15:13:59Z")

</div>

Thank you so just to gain a better understanding of the logic behind this. Every month when a payment is received ( based on my workflow) it will subscribe the user to a plan. When the payment does not go through the workflow will be 'terminated", this will remove the user from the plan?

---

<div class="post-metadata">

**Author:** ![mateusproto](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mateusproto/32/81621_2.png) [@mateusproto](https://forum.bubble.io/u/mateusproto)\
**Post date:** [September 10, 2021, 4:20pm UTC](https://forum.bubble.io/t/stripe-subscription-payments/168590/7 "2021-09-10T16:20:14Z")

</div>

@Melior_Devteam

Here you can check whether the subscription was successful or not.

But, based on the same logic, you can create a recursive scheduled workflow in which you will monthly check that the user’s subscription is active:

[https://manual.bubble.io/help-guides/the-bubble-api/recursive-scheduled-workflows](https://manual.bubble.io/help-guides/the-bubble-api/recursive-scheduled-workflows)

Or simply, every time the user logs in, you can check if the subscription is active.
