#hiroshi nishio
1 messages · Page 1 of 1 (latest)
hello! sure, i would suggest using payment_behavior=pending_if_incomplete when updating the subscription : https://stripe.com/docs/billing/subscriptions/pending-updates
"Update a subscription" allows me to do that above??
yes, you can update a subscription's quantity, and yes you can use payment_behavior=pending_if_incomplete
For example, if user A subscribes with 10 subscribers, and 10 minutes later, user A realizes that he/she needs to subscribe with 11 subscribers, he/she can press the button to call the update a subscription API. I guess?
yep, that's right
Why should I use payment_behavior=pending_if_incomplete?
from the doc
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.