#cian54

1 messages · Page 1 of 1 (latest)

weak dawnBOT
glacial swan
#

Yes you can still make the modify call on the subscription directly or you can modify the active phase on the schedule. I think updating the active phase is typically more straightforward. Updating the subscription with that call will still create a new phase on the schedule

thorny crest
#

but updating the active phase don't charge the user imideatly it pass the subscription to the new one while waiting for the user to pay

glacial swan
#

Not quite sure what you mean. Is there already a pending update or payment?

#

Do you have the ID of an example subscription that you did this kind of update with?

thorny crest
#

req_4OraUbpCtcuhM9

weak dawnBOT
naive rune
#

👋 Hopping in here

#

If I understand correctly, you want the phase to immediately apply and charge the user a prorated amount correct?

thorny crest
#

yes otherwise keep the current subscription

naive rune
thorny crest
#

how can I go back manually ?

naive rune
#

You would need to update the phases again

thorny crest
#

how with wich webhooks ?

naive rune
#

I believe you can listen to invoice.payment_failed events. That event is generated when the payment for the invoice fails

thorny crest
#

but how exactly can I handle this case because it can fails for a different of reason ?

naive rune
thorny crest
#

Ok I understand thank you