#kevin_code

1 messages ยท Page 1 of 1 (latest)

mystic pollenBOT
#

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

stuck bluff
#

What's the cus_xxx ID and the code you're using to create the Customer Session?

fresh raft
#

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?

stuck bluff
#

Yes, or just the cus_xxx ID

fresh raft
#

Oh sorry, this is the ID: cus_SrJAFioZ1xYb14

stuck bluff
#

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_redisplay values on those PM objects to be always
  • Pass payment_method_allow_redisplay_filters: ['always', 'unspecified'] when they create the session
fresh raft
#

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

stuck bluff
fresh raft
#

Thanks a lot, perfect ๐Ÿ™

stuck bluff
#

There's a 'saved' tab/radio button

fresh raft
#

We can close this thread, have a nice day ๐Ÿ™‚