#Redrigz
1 messages · Page 1 of 1 (latest)
Did you look at pending updates? https://stripe.com/docs/billing/subscriptions/pending-updates
They will only be 'applied' when the required payment succeeds
this is the status when the payment is denied or failed
the previous payment was SILVER_MONTHLY
the client payed 60$ for Silver and the he tried to update to Gold and the difference is 12$ but he declined the require authorization, in that case i would like the revert the the previous subscription
Yep, this is expected behaviour:
By default, updates are applied regardless of whether payment on the new invoice succeeds. If payment fails, rolling back the updates is a manual process. You need to create a new invoice, prorate items on the invoice, and then initiate payment again. However, with the pending updates feature, you can make changes to subscriptions only if payment succeeds on the new invoice.
You should initiate the downgrade back to the previous plan manually: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
In future, to prevent this scenario, you can use the pending updates feature I shared above
but i can't find this parameter 'payment_behavior: pending_if_incomplete' on this version 7.15.0
Looks like types were added in 8.2.0: https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#820---2020-01-15
thank u