#feminaagravat_39821
1 messages · Page 1 of 1 (latest)
You can set it on 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.
How can I pass that along with CHeckout session.
I want my user to mark that payment as default on checkout session
@barren geyser
Not possible
So after checkout response I have run update subscription in background right ?
Will I receive Payment Method Id in checkout success response ?
You'd need to grab it from the payment intent or subscription id
Hello
I just checked the checkout session response when there is a subscription
there is default payment method set. But I want to assign that subscription default payment method to customer's default payment method.
Oh if you want it customer-wide and not just set for the sub, you need to do: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-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.