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.
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.
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.
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?
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.
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
@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!
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