#adam berger
1 messages · Page 1 of 1 (latest)
You should be able to just change the default payment method: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Assuming it's been set up properly
So I should:
- Create PaymentMethod
- Assign PaymentMetohd to Customer
- Assign PaymentMethod as default_payment_method
?
Is it compilant with new India regulation?
You would need to use a setupintent to create and setup the payment method for future usage
Is there any option to bind setupIntent to a subscription?
No the purpose of the setupintent is so the payment is created and setup properly. You'd still have to call update subscription and pass the id of the resulting payment method to set it as the default
Oh sorry
I'm not that familiar with India Emandates, but looks like this actually isn't possible: https://stripe.com/docs/india-recurring-payments#subscription-updates
To perform any of the aforementioned updates to an existing subscription, Stripe recommends that you cancel the original subscription and create a new one.