#.rjcustodio
1 messages · Page 1 of 1 (latest)
Hello .rjcustodio, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• .rjcustodio, 5 days ago, 14 messages
you can set the default_payment_method for either the Subscription [0] or invoice_settings.default_payment_method [1] on the customer
[0] https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
[1] 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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can i also do this when creating checkout sessions?
v1/checkout/sessions?
this is for mode=subscription?
yes
then you don't actually need to explicitly set anything when creating the Checkout Session. The default payment method is automatically set when a customer pays via Checkout Sessions
it is not set to default
is there a way to set this automatically in checkout session?
can you share the subscription id?
https://dashboard.stripe.com/test/subscriptions/sub_1O4wqKDnngZHMkVLNSGUdQJO - it's set as the default_payment_method on the subscription
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
no need to add something on the request when creating check out sessions?
no, you don't. If you want to test, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks