#jdraiv_docs

1 messages ยท Page 1 of 1 (latest)

thin gardenBOT
#

๐Ÿ‘‹ 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/1237132667674165308

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

soft locust
#

Hello, does the UI look like this for the saved PM? Or something else?

#

Ah yes, that doc is about Link. Link logins are based on cookies, so as long as you are logged in we will show saved Link payment methods by default. Link exists outside of your integration so any saved payment method on your Link account will show up by default there, even if you didn't save a payment method to the specific Customer in Stripe.

orchid vale
#

It looks like this. The card 4242 was used to purchase a subscription, and the option to save the payment information was not selected ๐Ÿ˜ฎ

soft locust
#

Can you send me the ID of that Checkout Session? (cs_test_1234)

orchid vale
#

Sure, let me get that for you, one sec

#

The ID is cs_test_b1WLz4sKhyjMHkYR28Cwd6OHjAid2sRZEa8HWRDLY2wT1FSQ4s2fUbgnk2

soft locust
#

I am not seeing that saved PM and am having trouble getting a PM to show up like that in my own tests. Asking my colleagues if they recognize how that PM was saved and why it is showing like that

thin gardenBOT
orchid vale
#

Gotcha! Let me know if you need anything from me that can help you debug the issue

soft locust
#

So I was working in a couple threads and missed that that first screenshot is from the Customer Portal. It is expected for a Customer's saved payment methods to show up there if you are saving payment methods to your customers

#

That is separate from Link in Checkout, which are two things that that screenshot is not using.

#

So looking again, it does look like that customer has a payment method that was saved to it. In my own testing in Checkout, I cannot get that to happen without checking that box. Can you try this again on a fresh customer in test mode to see if you see the same behavior?

orchid vale
#

I tried again twice and once using incognito but I am still getting the same issue :/ I tested using customer cus_Q3gdhUbjG9C8xJ

thorny breach
#

Hi there, stepping in for my teammate who had to run

#

Just to be clear, you're saying this customer paid with a Diners Club test card number via a Checkout Session but did not check the box "save my card information for future purchases"?

orchid vale
#

That is correct, and whenever I try to purchase a different product I see the diners club card in the confirmation page

thorny breach
#

Give me a few minutes to test this

#

And just to be clear, if you create another Checkout Session for this customer, you see the same Diners Club test card prefilled?

orchid vale
#

That is correct

thorny breach
#

I can't reproduce this. I see the PM for cus_Q3gdhUbjG9C8xJ was saved since the Checkout Session was for a subscription (so we need a way to charge them later) but if I create a subscription mode Checkout Session for a customer and then create another Checkout Session for the same customer, I'm prompted to fill out card details again. Nothing is prefilled

#

It is expected for this customer to be able to see their saved payment details in the Customer Portal though

#

Do you have the request or Checkout Session ID handy for the second Session you created for cus_Q3gdhUbjG9C8xJ?

thin gardenBOT
orchid vale
#

Actually, I just noticed that the sessions that display the payment method are not Checkout sessions, but BillingPortal sessions. Here's the ID of the last billing portal session created that displays the payment method: bps_1PDa0gFOnNhUCG9BpbRf24MT

thorny breach
#

Gotcha, thanks for confirming

#

So this is expected. Since the PaymentMethod for this customer is being used for a Checkout Session in subscription mode, we automatically save that PM to the customer in order to be able to use the PM for future subscription payments. It's expected that the customer can see those saved PMs in the billing portal. If you create a new Checkout Session for this same customer, the PM they used for the Subscription will not be automatically filled.