#dominikganic_unexpected
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/1338566120155648132
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dominikganic_api, 4 hours ago, 9 messages
- dominikganic_best-practices, 2 days ago, 12 messages
- dominikganic_unexpected, 4 days ago, 40 messages
- dominikganic_best-practices, 5 days ago, 20 messages
- dominikganic_unexpected, 5 days ago, 56 messages
- dominikganic_best-practices, 6 days ago, 22 messages
Example of the payments elements which show "only" one credit card (**** 0341) but not the other ones?
HI ๐
The Payment Element will only display a single saved payment method
Hi ๐ Oh okay!
I had once the option to "switch" to another one - but somehow even that is not available anymore?
I could select another credit card in the Payment Element
There was something like a button "More information" and there I was able to select it
I'm not sure what you are referring to. Do you have an example integration that displays this behavior?
Thats the thing, I can't reproduce it right now sadly, hm
But nevermind, that's no big deal tbh
So when the customer has set PayPal as preferred payment method (Default) - is there any way I can let him use that without re-authenticating again with PayPal?
You might double check your payment element integration against what we have here and see if there are any differences.
Yes, looks fine in my code. But it doesn't display PayPal as saved method - is that not supported?
Is the PayPal payment method saved with allow_redisplay set to a value that will permit you to share it?
Hm I can't find where I should set allow_redisplay
To add a new payment method:
- I create a customer session
- Load the payment element
- Now stripe adds it to the customer when I invoke it
You need to specify the allow_redisplay parameter if you want to be able to display that saved payment method in the Payment Element
Hm okay, that referes to the PaymentMethod object
But I don't use the ->paymentMethods->create() feature within my backend
I create a setup intent in a payment element and load it there, then the customer can add his card and process it, now stripe handles the creation
You would need to specify the payment_method_data.allow_redisplay parameter when creating the Setup Intent
Oh okay! I will try that now quick ๐
Hm. Now it requires me to set "type" as well, but I can't specify a specific type like "paypal" - I want it to apply to all types, is that possible?
Because we don't work with specific types, we work with all available (automatically listed by stripe)
What is the exact error message?
And when you include payment_method_type: "paypal", that throws an error?
No, then it works, but will that not just work with paypal then and not with others?
I have now this options set to create a setup intent, which works fine right now
I've added with use of this setup intent client secret and payment elements now paypal as payment method
When I navigate to the checkout, I can't re-use paypal in this case. Why?
Hello! I'm taking over and catching up...
Our recommended approach for displaying saved payment methods in the Payment Element is here: https://docs.stripe.com/payments/existing-customers?platform=web&ui=elements
Can you give that approach a try and see if it works the way you want?
Yes, I have set "payment_method_redisplay" => "enabled" in my customer session creation.
Anything else is also similar :/
I'm checking, but we might have limited support for the various payment method types you can surface...
I know we support cards, US bank accounts, and SEPA, but I think we might not have support for other stuff like PayPal right now.
Yes I understand, so is there any chance I can define multiple types instead of a single one like in my case "paypal"?
Just to make sure I understand, when you specify paypal, it works and shows the saved PayPal stuff in the Payment Element?
No actually it doesn't, but I've expected so ๐
That's what I'm trying to do (:
I've seen now on bottom "Payment Method object"
That has a property "allow_redisplay" set to "unspecified"
When trying to perform a test payment with paypal
If you update that Payment Method and set allow_redisplay to always can you then get it to show up in the Payment Element? https://docs.stripe.com/api/payment_methods/update#update_payment_method-allow_redisplay
Ah, okay, just found some internal info that confirms saved PayPal won't show up in the Payment Element yet. It's not something we support yet.
Ah thank you for researching! That's just what I've thought ๐
So in that case, thanks for your effort. You guys and this support is absolutely insane. Love it. Keep it up!
Thanks again a lot of times for taking time to do this research and have a nice day ๐
Happy to help!