#dominikganic_unexpected

1 messages ยท Page 1 of 1 (latest)

weak hatchBOT
#

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

regal arrow
#

Example of the payments elements which show "only" one credit card (**** 0341) but not the other ones?

shell tapir
#

HI ๐Ÿ‘‹

The Payment Element will only display a single saved payment method

regal arrow
#

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

shell tapir
#

I'm not sure what you are referring to. Do you have an example integration that displays this behavior?

regal arrow
#

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?

shell tapir
#

You might double check your payment element integration against what we have here and see if there are any differences.

regal arrow
#

Yes, looks fine in my code. But it doesn't display PayPal as saved method - is that not supported?

shell tapir
#

Is the PayPal payment method saved with allow_redisplay set to a value that will permit you to share it?

regal arrow
#

Hm I can't find where I should set allow_redisplay

#

To add a new payment method:

  1. I create a customer session
  2. Load the payment element
  3. Now stripe adds it to the customer when I invoke it
shell tapir
#

You need to specify the allow_redisplay parameter if you want to be able to display that saved payment method in the Payment Element

regal arrow
#

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

shell tapir
#

You would need to specify the payment_method_data.allow_redisplay parameter when creating the Setup Intent

regal arrow
#

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)

shell tapir
#

What is the exact error message?

regal arrow
#

"Missing required param: payment_method_data[type]."

shell tapir
#

And when you include payment_method_type: "paypal", that throws an error?

regal arrow
#

No, then it works, but will that not just work with paypal then and not with others?

weak hatchBOT
regal arrow
#

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?

abstract blaze
#

Hello! I'm taking over and catching up...

#

Can you give that approach a try and see if it works the way you want?

regal arrow
#

Yes, I have set "payment_method_redisplay" => "enabled" in my customer session creation.

Anything else is also similar :/

abstract blaze
#

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.

regal arrow
abstract blaze
#

Just to make sure I understand, when you specify paypal, it works and shows the saved PayPal stuff in the Payment Element?

regal arrow
#

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

abstract blaze
#

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.

regal arrow
#

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 ๐Ÿ™‚

abstract blaze
#

Happy to help!