stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Apple Pay is not working for me.

Open aakanksha-02 opened this issue 5 years ago • 3 comments

Reference I'm using - I was using this example https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/ApplePayScreen.tsx and this doc https://stripe.com/docs/apple-pay?platform=react-native

** Issues** In step 7, I should get the client secret using my stripe secret key, amount, and currency. I made the curl request, received payment Intent object but payment method is coming as null in that.

Screenshot 2021-05-12 at 10 49 00 AM

Hence presentApplePay() is failing with below error -

Screenshot 2021-05-12 at 10 50 42 AM

And in stripe, I see this -

Screenshot 2021-05-12 at 10 51 15 AM

How can I fix this. Is there anything that I'm missing in my implementation.

aakanksha-02 avatar May 12 '21 05:05 aakanksha-02

The confirmApplePayPayment method will attach the payment method to the PaymentIntent.

Can you log out the value of isApplePaySupported? My hunch is that you might be missing some configuration, e.g. maybe the certificate isn't setup correctly? https://stripe.com/docs/apple-pay?platform=react-native#troubleshooting

thorsten-stripe avatar May 12 '21 06:05 thorsten-stripe

Closing this due to inactivity. Please reopen or reach out to our technical support chat ( https://webchat.freenode.net/#stripe ) if you're still having issues. Thanks.

thorsten-stripe avatar May 14 '21 06:05 thorsten-stripe

Thanks for the support. Everything was at its place. It worked after clean build. But I don't see any customer details in stripe dashboard.

aakanksha-02 avatar May 14 '21 11:05 aakanksha-02