#sskarim-subscription

1 messages · Page 1 of 1 (latest)

edgy remnant
#

👋 Happy to help

#

This depends on your business logic. One way is to provide a grace period. If the customer doesn't make the payment within the grace period, you'll either rollback to the old plan or cancel the subscription.

silk dome
#

thanks, and how do I roll back the subscription to the old plan , can't find somthing on it in the docs

candid pewter
#

that way the subscription doesn't change until the payment succeeds

#

if not using that, then you just have to manually rollback by calling the Update Subscription API again to set values back to what they used to be(likely disabling proration in that update of course)

silk dome
#

thanks, i can't use pending_update, because the main reason we switched to payment element is to use bank debit which does not work with pending_update, now to set back subscription to previous states, do i need to save them in my own (old plan, and old end end dates) , or can i get them form stripe