#rasgo.cc-discount
1 messages · Page 1 of 1 (latest)
Sure! sub_1JiIuGGqJ4fQ2A21RsheCbRE
Thanks! Give me a few minutes to look into this.
I see this is for a 30% off coupon that is applied forever.
However I don't think removing or adding discount to subscription creates any proration. So you'll have to handle that yourself.
You could for example:
- Remove the coupon
- Compute the proration yourself and create an invoice item for that amount
- Then when the subscription renews, the invoice item will be included in the new subscription invoice
So, in 2) --- I would generate an invoice just to charge the prorated value (computed by me) until the end of current billing. Is that it? Then, since the discount has been removed, on 3) stripe would charge the regular price (ie without discount). This way the billing cycling would be the same. Did I get it right?
Almost! You wouldn't "generate an invoice", you would "create an invoice item". And that invoice item will be automatically added to the next invoice of the subscription.
More info about invoice items here: https://stripe.com/docs/api/invoiceitems
So at the next billing cycle, the customer will be charged the regular price (without discount) + the invoice item for the proration.
Ah, but what I really wanted to avoid is having to wait until the the next invoice (yearly payment) - I want to charge the difference now
As far as I understand, I either: 1) remove discount and reset the cycle (stripe computes the proration for me) - which I'm not sure if the customer will agree (resetting billing cycle) OR 2) remove discount, create new invoice with manually computed proration, charge the customer - billing cycle stays the same, next (auto) invoice doesn't include the discount anymore