#Avery246813579 - Payment Element Wallets

1 messages · Page 1 of 1 (latest)

tawny sluice
#

Hello! Apple Pay will only work in Safari and requires you to validate your domain. Google Pay only works with Google Pay cards in Chrome (not cards saved locally to Chrome).

#

Which one do you want to focus on first, Apple Pay or Google Pay?

pliant ledge
#

Google Pay

#

Do you have to verify the localhost domain

#

Seems like kinda a pain for testing

tawny sluice
#

No, Google Pay does not require domain validation, but Google Pay requires a secure (HTTPS) connection to work.

pliant ledge
#

So nothing will show basically until I am on production or use ngrok

tawny sluice
#

Yep, that's correct.

pliant ledge
#

Alright so I can just assume it works if the element itself works and I have Apple and Google pay working without this new PaymentElement

#

Also when do the PaymentElement need a redirect?

tawny sluice
#

Yep, if Apple Pay and Google Pay work with the Payment Request Button they should work with the Payment Element as well.

#

The Payment Element will always redirect by default.

pliant ledge
#

What method would you ever need redirect for?

tawny sluice
#

Right now there are a lot of them, like the bank transfer methods and whatnot.

pliant ledge
#

But if I only have card and google pay enabled are there any redirects

#

currently we use the paymentIntent on the client side after the confirmPayment

tawny sluice
#

Currently no, but a redirect may be required in the future. You should build your Payment Element integration assuming a redirect may be required at any time.

#

And if you want to add support for things like AfterPay, Klarna, etc. it will be a lot easier if you build with redirects from the beginning.

pliant ledge
#

Yeah I wanna support PaymentElement but using a redirect is very complicated in our current system

tawny sluice
#

As more and more payments go async redirects will become more and more common. Even now some less-than-ideal 3D Secure implementations require a redirect even when they shouldn't.

pliant ledge
#

Yeah we can plan for the future and just currently use it now?

#

Since it would basically change our whole payment system

#

and we only use the basic options for the time forward

tawny sluice
#

You can as long as you're okay with missing out on payments that do require a redirect. If you're sticking to just cards that should be only a few edge cases.

#

But, again, not recommended.

pliant ledge
#

Awesome

#

I will be stupid and will take responsibility in the interim

#

Thanks for the help!

tawny sluice
#

No problem!

pliant ledge
#

Alright another quick question. Is there a way to validate the payment element to see if the card fields are filled out?