#Avinash-default-pm
1 messages · Page 1 of 1 (latest)
subscriptions
Got it. And what flow are you using to collect payment methods?
We have a sign up page where we collect credit card details and when those get transferred to Stripe, they are not being saved as default payment methods so we cannot see them on main page.
not sure if this is the method to setup payment methods as default before pushing data to Stripe.https://stripe.com/docs/payments/save-and-reuse?platform=web
So you collect the PaymentMethod via creating a SetupIntent ahead of creating the Subscription?
yes
Okay in that case you have two options. You either update the customer's invoice_settings.default_payment_method: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method. This will make the PaymentMethod used for any Subscription the customer has. Or, you can set the default_payment_method on the Subscription itself when you create the Sub: https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method. This will use that PaymentMethod specifically for that Subscription.
This helps. thanks a lot