#jmschp_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/1296874811519406164
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
HI ๐
The doc explains what this step is for. it is to allow customers to save their payment methods when they enter the details and then, the next time they interact with your payment element, they can choose the saved PM
Without that step, they won't be able to see the payment method again?
But the Payment Method is saved anyway without it.
The payment method is saved if you specify the setup_future_usage parameter. But no, the customer will not see it when they interact with your site
I am having a look a the docs.
setup_future_usage is fo Payment Intents, right?
In my case I am not using the Payment Intent, since I don't want to make a payment. I just want to add the payment method.
So:
- If I follow Optional -> Save and retrieve customer payment methods, using the Customer Session, the Payment Method will be saved and it can be displayed again, in a StripeJS element.
- If I skip this, and go directly to Setup Intent, the Payment Method will also be saved, but won't be displayed again in a StripeJS element (not at lest with further changes.).
Is the correct?
Correct
And.. to be fair, you can always update the allow_redisplay property on the Payment Method if you want to display saved payment methods in your Payment Element.
https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay
Thnak you very much!