#Vikram A. — apple pay
1 messages · Page 1 of 1 (latest)
Hello, good question. Looking in to what you can get here
Can you elaborate on your security concerns?
i am concerned that how can we validate at the server that customer has paid through applePay ??
As in given the ID of a confirmed payment intent you want to check if it is apple pay or a regular card payment?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks will look into it