#anadev16_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1273034945081901128
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- anadev16_api, 1 hour ago, 14 messages
it doesn't show other options, even when I have three payment methods saved for that customer
Hi there
I think this is expected. When you pass a customer ID when creating a Session, the payment method we use to prefill the Session is the customer's most recently saved card: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
SO using Stripe, there is no way I can do something similar to this where I display all payment methods for them to pick
Only with the PaymentElement: https://docs.stripe.com/payments/save-customer-payment-methods#display-existing-saved-payment-methods
That means I have to re-do the whole backend ๐ซ
So currently, in Checkout, we'll prefill the customer's most recently saved card if that card has a valid billing address, billing name and billing email and if the PaymentMethod object has allow_redisplay: 'always'
That means if they want to use the first card, they will need to manually input the information which will save another payment method with the same card information
which will save another payment method with the same card information
It will be saved but only available for re-use if the customer checks the "save my payment information for future purchases" box
I understand that, but same issue. If the customer wants to use a previous card they won't be able to. Unless they manually input the card information again.
In the profile section for my app I'm displaying all payment methods, it is going to show a bunch a duplicate cards
Understand that it's messy. I'll share this feedback with our team
In your app's profile section, your logic that determines which payment methods to display can look at the PaymentMethod fingerprint. If the customer has multiple PaymentMethods that have the same underlying card details, the fingerprint values will match