#umairasif7-subscription-payments
1 messages · Page 1 of 1 (latest)
Hi, I would recommend reading through this: https://stripe.com/docs/billing/subscriptions/build-subscriptions
I did that.
I need to add payment method id as its currently taking user's default payment method
I don't understand what you're asking. Can you elaborate on what you're doing versus what you're trying to do?
I am updating the billing cycle to "now" for the user's subscription, which will charge the user. For that, stripe is deducting the amount from the user's default payment method, but I want to give the user an option to select the payment method.
Updating the billing cycle to now will instantly charge the default payment method, so you need to present the customer with a page that allows them to change their default payment method before you even get to that step.
Is there any option in subscription update api to add payment method other than default payment method?
Yes, you can update the default payment method for the subscription: 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.