#lil_nasty_
1 messages ยท Page 1 of 1 (latest)
HI ๐
No that is not possible currently. You would need to add a field in your UI to collect coupon codes and apply them.
Can I add the code to a subscription after it's been created?
After the subscription has been created I mean
So basically user lands => page triggers subscription creation to get the payment intent => user enters coupon code => we edit the subscription with the coupon code => return the updated payment intent => user proceeds to pay w/ discounted rate
I would recommend not generating the susbcription until after you know if the coupon should be applied
Is there a reason for that?
My reason for not wanting to is that we load the payment intent in the background
ah man... that's not good... is there some way to apply it to the invoice?
IF the invoice is in a draft state but if it's the first invoice of a new subscription it will finalize immedtiately
Hmm so there's actually no way to create the subscription and have it loaded already and then apply the coupon to the initial invoice and all others to follow?
Prob 1% of our users will use the code, I'd rather not make the 99% that will not use it wait any extra time for the subscription to be created.
No, applying the coupon after the sub is created will only apply it to the invoices after the first one
Ok, thanks for the help!
Happy to shed what ๐ก I can ๐
One other question... what if we create the sub w/o the coupon so the 99% will have a faster experience, then for the 1% who use the code we will create a new subscription w/ the code and let the other one simply expire?
You could do that, or delete it directly via the API: https://stripe.com/docs/api/subscriptions/cancel