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

ApplePay: createPlatformPayPaymentMethod + confirmPlatformPayPayment

Open angelica-snowit opened this issue 9 months ago • 7 comments

The flow of our application is as follows:

  • When the user clicks the PAY button, I call createPlatformPayPaymentMethod to obtain the paymentMethod to send to our backend.
  • Our backend responds by requesting a confirmation action.
  • I use the confirmPlatformPayPayment function 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?

angelica-snowit avatar Jan 23 '25 14:01 angelica-snowit