stripe / stripe-terminal-react-native

React Native SDK for Stripe Terminal
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=react-native
MIT License
106 stars 50 forks source link

confirmPaymentIntent throwing random error in production but no server-side logs #746

Closed inzqne closed 2 months ago

inzqne commented 3 months ago

Describe the bug The user goes through the tap to pay flow and taps a card on iPhone 14 Pro and the SDK attaches the card to the payment intent (seen in the screenshot below) with the collectPaymentMethod function with iPhone Tap to Pay but fails on the confirmPaymentIntent method with a non-decline error but no server logs. Not sure why this happens and we currently have no logging for this in production so any guidance is appreciated 😄. I also attached the Stripe API logs below, I noticed that there were no calls to the /confirm endpoint for this payment intent, only the creation endpoint which is weird so no logs there either.

Here is the device UUID if it helps: caab148b1603981a9e4699adb523753e8c4748c2be5a2a48854dacf94ff9d319

If it would be helpful to have more info such as the Payment Intent ID please let me know and I can send it privately.

Expected behavior For the payment intent to confirm and charge the customer's card that is attached to the payment intent

Screenshots image image

Stripe Terminal React Native SDK version ^0.0.1-beta.16

Smartphone:

nazli-stripe commented 3 months ago

@inzqne can you let us know the failing PaymentIntent ID as well?

inzqne commented 3 months ago

@inzqne can you let us know the failing PaymentIntent ID as well?

Hi Nazli, sorry for the hassle. It ended up being an issue with location permissions, I was not aware that if you had location permissions off you can still go through the whole Tap to Pay flow and tap a card without location perms.