#smtlaissezfaire
1 messages · Page 1 of 1 (latest)
Hello! If you specify an existing customer when creating the Checkout Session the resulting Checkout page will display an eligible saved Payment Method if one exists. If you're not seeing one show up then the ones stored on the customer specified aren't eligible to be displayed.
Thanks, yeah I read that in docs. A few questions: 1) Can I access all of the payment methods, not just the default one? 2) What makes a payment method eligible?
For #1 no, it must be the default. For #2, generally speaking it needs to be a Payment Method (not a legacy object like a Card or Source), and it needs to have been properly set up for future use in the past.
So I'm sending the customer id but don't see the payment method info filled in (I do see the email + zip filled in though)
I don't think it's using legacy objects. Also we're using setup_future_usage: 'off_session'
I'm not sure if the first call that created the card set that property though
Can you give me the Customer ID or the Checkout Session ID so I can take a look?
sure, test mode: cus_OYiYaLz5NplX00
the $515.24 change was the one I was specifically looking at - pi_3NleBpFqoqH9giIE1J8aq0Zc
Looking, hang on...
Thanks!
Ah, this Checkout Session is in subscription mode. We only prefill card details in payment mode: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#handling-existing-customers
Oh. So you can'd do subscriptions in payment mode I assume
Correct.
"In subscription mode, Stripe processes the customer’s default payment method if it’s a card. Otherwise Stripe processes the most recent card. The Checkout page requires a valid billing address to prefill the customer’s card details."
I'm not sure I understand that part
What part do you have a question about?
So what does " Stripe processes the customer’s default payment method if it’s a card" mean?
Doesn't that mean they don't have to fill out the form or?
It means it will use a card, but it won't use something like an ACH account, or some other form of payment.
Oh gotcha. Ok, so sounds like I need a different flow if I'm going to give the user's a selection
Yeah, if you want to present all of their saved payment info as options you would need to build your own UI for that.
Gotcha, ok thank you!