#Kikkoman
1 messages · Page 1 of 1 (latest)
No, I don't believe so. You would need to set their default either at the Subscription level or at the Customer level (here: https://stripe.com/docs/api/customers/update?lang=curl#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.
So the flow would be 1) customer completes the checkout session in setup mode 2) system retrieves the completed checkout session and retrieve the paymentintent(?) 3) system assign the paymentintent into the customer's default source (or should it be invoice_settings default payment method?)
You can set it on the Customer via invoice_settings. You just need the payment method ID from the Customer or the Payment Intent
after setting the invoice_settings.default_payment_method for a customer. This is the prefilled payment method when we do a checkout session in payment mode correct?
I don't understand the question. Can you elaborate?
so what we want is that when we setup a new checkout session in payment mode for an existing customer, their default payment method would be prefilled
is this default payment method coming from customer.invoice_settings.default_payment_method?
Ah, for that they would need to be using Link: https://stripe.com/docs/payments/checkout/customization#link
hmm, i'm not sure how that applies here.
You said you want Checkout to prefill the customer's payment method details, right?
So you create a Checkout Session in setup mode, then you send them another Checkout Session later in payment mode, correct?
yes
Okay, now I understand. So, Link would do the same thing a lot faster/easier, but if you want to prefill the card details, you can pass the Customer ID when you create the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
Read through that parameter description and let me know if that does what you're looking for
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.