#Avinash-default-pm

1 messages · Page 1 of 1 (latest)

wild horizon
#

Hey there! Are you using Invoices/Subscriptions? Or just one-off paymentintents?

narrow cloak
#

subscriptions

wild horizon
#

Got it. And what flow are you using to collect payment methods?

narrow cloak
#

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.

wild horizon
#

So you collect the PaymentMethod via creating a SetupIntent ahead of creating the Subscription?

narrow cloak
#

yes

wild horizon
#

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.

narrow cloak
#

This helps. thanks a lot