stripe-react-native
stripe-react-native copied to clipboard
ApplePay: createPlatformPayPaymentMethod + confirmPlatformPayPayment
The flow of our application is as follows:
- When the user clicks the PAY button, I call
createPlatformPayPaymentMethodto obtain the paymentMethod to send to our backend. - Our backend responds by requesting a confirmation action.
- I use the
confirmPlatformPayPaymentfunction to confirm, and the payment is successfully processed.
This is more or less the same flow as on the website (with different function names, of course). Everything works, but from the user's perspective, it feels like they are paying twice because the same screen appears twice (both with createPlatformPayPaymentMethod and confirmPlatformPayPayment). This behavior is clearer in the attached video. This only happens with ApplePay, on Android the user action required it's just one.
This issue was reported in production, and I can’t tell whether it started happening at some point or has always been this way, though it seems strange to me. I am currently using version 0.39.
https://github.com/user-attachments/assets/c714264d-641c-46fd-9a45-b3498aa91de3
Any advice or suggestion?