#cashiersprit - Wallet Payments

1 messages · Page 1 of 1 (latest)

glass peak
#

Hello! The Payment Element does support both Apple Pay and Google Pay.

cosmic basin
#

I understand. but if user does not setup google pay or apple pay before, then it won't show to user right

#

also, if user is not using safari, then apple pay won't show either

#

is there a way we can tell, the wallet pay is actually showing in user's browser

glass peak
#

You're correct about Apple Pay and Google Pay not showing up if the customer hasn't set them up, and you're correct that Apple Pay is only supported in Safari. I don't believe the Payment Element indicates what's being displayed as an option. Can you tell me more about your use case?

cosmic basin
#

our user case is just want to statistics whether wallet pay is available to user and how many percent of user use wallet pay if they are available

#

so we need to know whether wallet pay is currently showing in user's browser or not

glass peak
cosmic basin
#

yes, but user could use card payment when wallet pay is showing to them. we want to know whether wallet pay is showing to user, but payment method is created after user make actual payment. it looks not straight to me

#

whether user make payment by card or wallet pay is one thing. whether wallet pay is showing to user's browser is a diff thing.

glass peak
#

Let me test something, hang on...

#

In the event the value will show what's currently selected, including Apple Pay and Google Pay.

cosmic basin
#

but user could not select anything, right

#

we know this event

glass peak
#

Yeah, if you want to know if it's displayed as an option but never selected that's not something you can do with the Payment Element.

#

You would need to disable Apple Pay and Google Pay in the Payment Element and use the Payment Request Button instead.

cosmic basin
#

ok, it looks there is no way to do it in payment element

glass peak
#

Correct, as far as I know it's not possible with just the Payment Element.

cosmic basin
#

thanks for your answer. it saves me a lot of time to dive your tech docu 🙂