#chetan-subscriptions

1 messages · Page 1 of 1 (latest)

digital bay
#

hi! if you're updating a subscription you usually don't use Checkout for that.

You make the update call directly to the API(per https://stripe.com/docs/billing/subscriptions/upgrade-downgrade). If a payment is required that can be handled in a few ways, the easiest is to get the hosted_invoice_url from the invoice that's created, and redirect the customer to that.

high gale
#

Thanks, but I don't see hosted_invoice_url in update subscription response. Am i missing something, let me know

digital bay
#

it's in the Invoice.

#

so for example if you do an update to a subscription object, you get a subscription back. It has a field called latest_invoice which might be the invoice generated for the required payment, and the Invoice has a URL to pay it.