#kevin_code
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/1413455195647512617
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
What's the cus_xxx ID and the code you're using to create the Customer Session?
Here is the customer session client secret I use cuss_secret_SzvFzTRvORm2h9rQVR6xdT29kojUZFw3jW9l9ZbnKjHl5QB
And it's the back-end that create the customer session with Ruby, do you want me to ask what they use to create the customer session?
Yes, or just the cus_xxx ID
Oh sorry, this is the ID: cus_SrJAFioZ1xYb14
Thanks, looking!
OK, so the session is created here: https://dashboard.stripe.com/test/logs/req_YMYo2KcSw0UdRQ
Note the lack of a payment_method_allow_redisplay_filters param
This is pertinent as all the saved PMs on that customer have allow_redisplay: 'unspecified' because of how they were saved. You likely need to either:
- Update the
allow_redisplayvalues on those PM objects to bealways - Pass
payment_method_allow_redisplay_filters: ['always', 'unspecified']when they create the session
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
See this article: https://support.stripe.com/questions/prefilling-saved-cards-in-checkout
It's Checkout specific but the same allow_redisplay principle applies to Payment Element
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Oh okay thanks a lot, so if I understand we need to specify if we allow redisplay on back-end side thanks, will dig further
Do you have an example of how PaymentElement is rendered with previous payment methods? I can't see a screenshot in the documentation
Thanks a lot, perfect ๐
There's a 'saved' tab/radio button
We can close this thread, have a nice day ๐