#coachleyton
1 messages · Page 1 of 1 (latest)
This isn't Stripe Support, that's here https://support.stripe.com/?contact=true
I will but I'm gonna take a minute, you ptu a lot of text in there and I'm helping multiple people
No problem
How do you want the customers to be billed during the change to the subscription? Do you want to apply prorations but still bill on the earlier schedule or cut new invoices when they make a change?
Invoice for prorations immediately, but allow the earlier schedule to apply (i.e., don't move the billing period start and end)
In that case you would want to update the Subscription with proration_behavior: always_invoice. The billing cycle remains the same but the Customer pays for the difference. https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
In that case the invoice will fire and you can reset your max characters counter when you get invoice.payment_succeeded
What if it's a down-grade? User has paid £10 at the start of the billing period, but then they move to a £5 tier? I don't plan on refunding the customer immediately, rather, it will remain in their customer balance. Considering that they aren't paying for the down-grade, does it generate an invoice?
I just tested this on my own test account. An Invoice was created for 0 amount. The Invoice item contained information about the prorated amount that is added to the customer balance.
For my test case this is what I saw in my invoice.created event
"amount": -18368,
"amount_excluding_tax": -18368,
"currency": "usd",
"description": "Unused time on Premium Wombat after 15 Jun 2023",