#serj2287
1 messages · Page 1 of 1 (latest)
Hi there!
This is covered here: https://stripe.com/docs/apple-pay?platform=ios#merchantid
thnaks, I thing this would help me to avoid situation that we have now
if (window.ApplePaySession) {
// true
// The Apple Pay JS API is available.
}
we show info about apple pay but letter on
when we do pr.canMakePayment() it is fase
I'm not sure I follow. What are you trying to do and what is the issue exactly?
in the checkout I want to show to the user the possibility to use apple pay
at that point I don't have the publishable_key
for this I use if (window.ApplePaySession)
show info
user selectes apple pay, I do a request to get the key and then use the useStripe to make a paymentRequest
in some situations first check is returning true
but paymentRequest.canMakePayment() is returning false
so I want to avoid this inconsistency