#isaac_checkout-existingcard
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/1286091155808850002
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
@left horizon that's mostly expected. Checkout doesn't really care about the default payment method set up for Subscriptions. It will just collect its own new card in that case
isaac_checkout-existingcard
Am I misreading these docs then? It says that the default method will be used in subscription mode, no? https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
So sorry I missed your reply entirely an hour ago
The default payment method can be used but there's a lot more criteria around allow_redisplay for example and having a full billing address. I recommend not relying on this behaviour but you can read https://support.stripe.com/questions/prefilling-saved-cards-in-checkout to get more details
I've made sure that I have allow_redisplay set to "always" and have a full billing address on the payment method and it still isn't showing up. What other criteria are there? Is there a place where this is documented?
I wish
I'm sorry, this is just a huge pain to debug. Can you please provide detailed information and exact example object ids so I can have a look?
What do you mean by "example object ids"?
You are testing this flow. Please share an exact Checkout Session id cs_test_123 and exact Customer id cus_1234 and exact PaymentMethod id pm_1234 so I can have a look
For sure, one sec
'cs_test_a17kJLwHCiIzY3VTttdpYvZs8OehQJoCtVJU4b14EuRUllkoDqSvHmt9oM', 'cus_QsFkmiGNQIzpva', 'pm_1Q0VF9It5oCpEszu8O25X89s'
thanks give me some time to figure out what's happening
For sure, I'm gonna be done for the day so no rush to get it back to me today
Thanks for the help!
ah I see
I'd recommend writing to support instead in that case and you can get an async answer over email: https://support.stripe.com/contact
Oh if you're going to do it right now I can hang out for a bit longer
Sure but it will likely take me half an hour or more and I'll have you try tons of things too
For example you seem to have created that PM all by hand and updated it over time. It's not a PaymentMethod you previously collected via Checkout.
Ok. I'll just reach out to support tomorrow then. I appreciate the help
Sounds good
If it helps I did this and it works fine for me
- Create a Checkout Session in payment mode and collect card details with a clear billing address and with the right "allow redisplay" settings
- Make that PaymentMethod the default
- Create a Checkout Session in subscription mode with that Customer id and it pre-fills my card
I think the issue is that you kind of did this by hand quickly with multiple steps to just create a Customer with an attached card and something is missing. Trying my way should yield the results you want
Ok, I'll give that a shot, thank you!
sure thing! Have a good night!