#Vikram A. — apple pay

1 messages · Page 1 of 1 (latest)

tall vapor
#

Hello, good question. Looking in to what you can get here

#

Can you elaborate on your security concerns?

mossy matrix
#

i am concerned that how can we validate at the server that customer has paid through applePay ??

tall vapor
#

As in given the ID of a confirmed payment intent you want to check if it is apple pay or a regular card payment?

mossy matrix
#

yes

#

is there any method for this on client side or server side @tall vapor ?

tall vapor
#

There should be, my apologies, the server is a bit busy so I haven't been able to look properly. I should be able to in a couple minutes

#

Hey, apologies for the delayed reply on this

#

So there are ways of telling but I am not 100% sure what the best way is with your setup. On client side, you should already know what PI you used with confirmApplePayPayment so just getting the response back without the error code should tell you that the charge succeeded with Apple Pay.

Server-side, you can always retrieve the PaymentMethod involved and check its card.wallet property to see what wallets if any it relates to https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-wallet-apple_pay

mossy matrix
#

Thanks will look into it