# Stripe Plugin. How to apply a coupon?

**URL:** <https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959>\
**Category:** Plugins\
**Created:** [December 13, 2019, 9:43am UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959 "2019-12-13T09:43:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcrm.mueller](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marcrm.mueller/32/51106_2.png) [@marcrm.mueller](https://forum.bubble.io/u/marcrm.mueller)\
**Post date:** [December 13, 2019, 9:43am UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/1 "2019-12-13T09:43:57Z")

</div>

Hey,

I’m using Bubbles Stripe plugin to sign users up for a subscription.  
Right now I’m stuck on applying coupons to the checkout/subscription.

In other posts, I saw people having an “Apply Coupon” checkbox.  
This checkbox doesn’t show up for me.

Does anybody have a workaround or a straight solution?  
I appreciate any help. Thank you!

 ![Bildschirmfoto 2019-12-13 um 10.49.33](https://us1.discourse-cdn.com/bubble/original/3X/4/e/4ec80db92ad68f8147b012e38fc442ca1a16b5c3.png)

---

<div class="post-metadata">

**Author:** ![adamroach94](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@adamroach94](https://forum.bubble.io/u/adamroach94)\
**Post date:** [May 25, 2020, 3:44pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/2 "2020-05-25T15:44:38Z")

</div>

I was having this issue and saw it re-appear when I switched from Checkout v3 back to Checkout v2. Perhaps it’s not yet available on v3?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [May 25, 2020, 3:51pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/3 "2020-05-25T15:51:13Z")

</div>

Hey there 👋

For v3 there is not really a way to use coupons unless they are already on the plan.

After a few back and forth emails with Bubble, I decided to create my own coupon system in Bubble and do it that way. Then I just have a few different subscription prices that I would refer to in Stripe.

It was not the easiest workaround but it did work.

> **Want to learn more?**
>
> [www.nocodeminute.com](http://www.nocodeminute.com)
> 
> ![Presenting](https://us1.discourse-cdn.com/bubble/original/3X/6/5/65f6fab3efed1c82ed9ceb6b067f755e0766996c.gif)

Hope that helps! 🙂

---

<div class="post-metadata">

**Author:** ![irfan.ali](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@irfan.ali](https://forum.bubble.io/u/irfan.ali)\
**Post date:** [October 15, 2020, 3:43pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/4 "2020-10-15T15:43:31Z")

</div>

@J805  
Is there any way to add a coupon (user input) while creating a subscription for the user, using stripe.js ?

currently, I’m using stripe.js (1.9.188)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [October 15, 2020, 3:49pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/5 "2020-10-15T15:49:44Z")

</div>

You can definitely do this in Bubble, even if Stripe.js supports it or not. I created my own coupon workflow where it changes the amount charged based on the coupons I have in my database. It was problematic when I was trying to use coupons with Stripe so I just made my own. 😊That’s the cool thing about Bubble.

---

<div class="post-metadata">

**Author:** ![nbourdon1](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@nbourdon1](https://forum.bubble.io/u/nbourdon1)\
**Post date:** [November 12, 2020, 6:38pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/6 "2020-11-12T18:38:15Z")

</div>

Hey again!

Can you explain how to create a coupon workflow?  
I’d like to have a User use a coupon tailored to them. 😄

Best,  
Nick

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2020, 7:44pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/7 "2020-11-12T19:44:10Z")

</div>

Sure @nbourdon1 😊

I am sure there are a lot of ways to do this, here is just one example. You could create a coupon data type like this:

Coupon  
- code (text)  
- expirationDate (Date)  
- quantity (Number)  
- userList (User)  
- chargeAmount (Number)

Then when the user types in the code you can check to see if the user has used it before, if the code has expired, or if the code is even valid or not. You can even display an error if it isn’t valid. If it is a valid, not expired, and the user hasn’t used it yet, then you can trigger the payment based on that coupon’s chargeAmount data.

Does that make sense?

Hope that helps! 😊

@j805 [www.NoCodeMinute.com](http://www.NoCodeMinute.com)

**For All Your No-Code Education Needs:**

- One-on-One Tutoring
- eLearning Hub
- Video Tutorials
- No-Code Classes

---

<div class="post-metadata">

**Author:** ![nbourdon1](https://avatars.discourse-cdn.com/v4/letter/n/ba8739/32.png) [@nbourdon1](https://forum.bubble.io/u/nbourdon1)\
**Post date:** [November 12, 2020, 9:33pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/8 "2020-11-12T21:33:46Z")

</div>

I can do that! And where you the customer than input the coupon code? So far I just have a button that state “Order Now $XX.xx” to link to the Stripe Payment page.

Are you saying that you are implementing a layer between the button and Stripe to allow Users to apply these coupons?

Nick

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 12, 2020, 9:53pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/9 "2020-11-12T21:53:40Z")

</div>

So you can put it on the same page with the ‘Order Now $’ button and just have it check the coupon code when you click the button. If the input is not empty then do a workflow to check the coupon first. If there is an error you can display the error and clear out the input. If there is no coupon then just trigger the payment workflow like normal. That’s just one way to do it.

Also, you can put a conditional on the button to display the price you will be charging them from the coupon chargeAmount as well. ‘Order Now $chargeAmount’

As an option you can have a different button to validate the coupon first if you prefer. It just depends on your preference.

Hope that makes sense. 😊

---

<div class="post-metadata">

**Author:** ![sanjuujosephh](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sanjuujosephh/32/55131_2.png) [@sanjuujosephh](https://forum.bubble.io/u/sanjuujosephh)\
**Post date:** [November 17, 2020, 5:44pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/10 "2020-11-17T17:44:18Z")

</div>

@J805  
How did u make it work?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [November 17, 2020, 8:48pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/11 "2020-11-17T20:48:35Z")

</div>

Hey @sanjuujosephh 👋

Which part? What are you stuck on? Maybe share a screen shot? Let me know. 😊

---

<div class="post-metadata">

**Author:** ![aa1](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@aa1](https://forum.bubble.io/u/aa1)\
**Post date:** [February 9, 2021, 10:45pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/12 "2021-02-09T22:45:26Z")

</div>

Hi there!  
Any news on this topic?  
Does anyone know when the Stripe plugin will be updated to apply coupons to subscriptions with Checkout v3?  
Has someone been able to do it without having to integrate the coupon system to Bubble — which looks pretty time-consuming as we have a lot of different discounts…  
Thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://forum.bubble.io/u/Boost)\
**Post date:** [March 25, 2021, 5:56pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/13 "2021-03-25T17:56:37Z")

</div>

![Screenshot_427](https://us1.discourse-cdn.com/bubble/original/3X/7/3/7324ed8e48d29c338df52ff40e456205ee01a0f3.png)

It says it’s new, but I don’t see it at all on the checkout page. I saw the checkbox for it in Bubble, but didn’t see an input for it on Stripe

---

<div class="post-metadata">

**Author:** ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://forum.bubble.io/u/Boost)\
**Post date:** [March 25, 2021, 5:59pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/14 "2021-03-25T17:59:48Z")

</div>

Oops, never mind found it.

 ![Screenshot_428](https://us1.discourse-cdn.com/bubble/original/3X/8/e/8e2a1090d5d24a58c95d05ddc678ff176dd337fa.png)

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [March 25, 2021, 7:19pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/15 "2021-03-25T19:19:40Z")

</div>

Yeah, this isn’t a thing. I asked Bubble to add it- not on the top of their list. Maybe we’ll see that on the new Stripe plugin they’re working on?

---

<div class="post-metadata">

**Author:** ![w.fly](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/w.fly/32/26894_2.png) [@w.fly](https://forum.bubble.io/u/w.fly)\
**Post date:** [March 25, 2021, 7:26pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/16 "2021-03-25T19:26:44Z")

</div>

@johnny Actually, @Boost you are correct! This hasn’t worked for months… I just ran a test in my application, it works beautifully. This is major! The coupons and tax rates were two of the largest gaps in Bubbles Stripe V3 plugin and now it works wonderfully. @Bubble big win here. Thank you for this!

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [March 25, 2021, 7:33pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/17 "2021-03-25T19:33:29Z")

</div>

@w.fly,

I’m talking about having this coupon ability:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/e/8e59a674fe35303e626b1ebaff545c22c0dfe6c7.png)

---

<div class="post-metadata">

**Author:** ![w.fly](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/w.fly/32/26894_2.png) [@w.fly](https://forum.bubble.io/u/w.fly)\
**Post date:** [March 25, 2021, 7:36pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/18 "2021-03-25T19:36:04Z")

</div>

Ohhh… does the “Add promotion code” field not work? I’m kinda confused now… I thought a promotion code was a coupon… 😕

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [March 25, 2021, 7:46pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/19 "2021-03-25T19:46:24Z")

</div>

It isn’t a thing, Bubble needs to add the code for it, but they haven’t. The way @Boost showed is with the v2 version I believe? With subscription plans? But the one I screenshotted is a thing for singular charges and subscriptions

---

<div class="post-metadata">

**Author:** ![w.fly](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/w.fly/32/26894_2.png) [@w.fly](https://forum.bubble.io/u/w.fly)\
**Post date:** [March 25, 2021, 7:47pm UTC](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959/20 "2021-03-25T19:47:56Z")

</div>

Ah I see - Well, mine is V3, but it’s for the “Subscribe a user to a plan”. I know for a fact that functionality did not work even a month ago.

 ![Screen Shot 2021-03-25 at 2.27.04 PM](https://us1.discourse-cdn.com/bubble/original/3X/8/5/8501d4c5ff5926e31cd7f83b75665e2be644c87c.jpeg)

[Next page](https://forum.bubble.io/t/stripe-plugin-how-to-apply-a-coupon/73959.md?page=2)
