#hiroshi nishio

1 messages · Page 1 of 1 (latest)

kind nebulaBOT
lone silo
empty palm
#

"Update a subscription" allows me to do that above??

lone silo
#

yes, you can update a subscription's quantity, and yes you can use payment_behavior=pending_if_incomplete

empty palm
#

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?

lone silo
#

yep, that's right

empty palm
#

Why should I use payment_behavior=pending_if_incomplete?

lone silo
#

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.
empty palm
#

ah so we all should use that!

#

If a user updates from 10 to 11 users, if payment is successful, it will update to 11, right? What happens if the user updates from 10 to 9 users? Would it be 9 people since refunds are always successful?