#sameer.kumar
1 messages · Page 1 of 1 (latest)
Hi! well if it's a mode:subscription CheckoutSession, it already sets the payment method used as the default for that subscription automatically.
if it's a mode:payment you can call https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method when handling the webhook for example, to set the payment method as default for any future invoice/subscription payments on the customer.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it's mode:subscription and it doesn't set the payment method as default.
I'm on test mode, I tried this and verified from the dashboard.
it does, it set it on the Subscription. (not at the customer-level).