#JamesHayes

1 messages · Page 1 of 1 (latest)

waxen monolithBOT
sinful bolt
#

Hello

waxen monolithBOT
sinful bolt
#

This is a common piece of confusion with how proration works. Proration is not based on the payment being successful -- it is calculated under the assumption that the Invoice will eventually be paid. If you don't want this behavior then it is your responsibility to ensure that your customer comes back and pays that Invoice before you would let them upgrade/downgrade and utilize the proration generated from that Invoice or you would want to disable proration.

mental zenith
#

Hmm but if I am trying to charge the user there and then and the payment fails. I downgrade the user back to the free plan. I am not sure how I see a failed payment can apply a credit to a invoice that is 0.00 already

#

plus why would it apply the credit when the payment failed anyway. There would be nothing to add/remove as the process failed in the first place

sinful bolt
#

As I noted, this is the way that proration works. It has nothing to do with whether the Invoice is paid or not.

It sounds like you may want to look into pending_updates instead here (https://stripe.com/docs/billing/subscriptions/pending-updates) if you only want to allow for upgrade based on a successful payment.