#lil_nasty_

1 messages ยท Page 1 of 1 (latest)

frank pollenBOT
lean axle
#

HI ๐Ÿ‘‹

No that is not possible currently. You would need to add a field in your UI to collect coupon codes and apply them.

gritty badger
#

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

lean axle
#

I would recommend not generating the susbcription until after you know if the coupon should be applied

gritty badger
#

Is there a reason for that?

#

My reason for not wanting to is that we load the payment intent in the background

lean axle
#

The coupon won't apply to the invoice that was generated

#

only future invoices

gritty badger
#

ah man... that's not good... is there some way to apply it to the invoice?

lean axle
#

IF the invoice is in a draft state but if it's the first invoice of a new subscription it will finalize immedtiately

gritty badger
#

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.

lean axle
#

No, applying the coupon after the sub is created will only apply it to the invoices after the first one

gritty badger
#

Ok, thanks for the help!

lean axle
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚

gritty badger
#

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?

lean axle