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

iOS presentPaymentSheet errantly returns early with RN 0.85/Expo 56

Open rfree18 opened this issue 6 months ago • 2 comments

Describe the bug When using the latest version of the SDK alongside Expo 56 + RN 0.85, this promise returns immediately with an error despite the sheet still being presented successfully.

To Reproduce Steps to reproduce the behavior:

  1. Bootstrap a project with Expo 56 and the latest Stripe RN SDK
  2. Call initPaymentSheet followed by presentPaymentSheet
  3. Observe that presentPaymentSheet immediately returns with an error "TypeError: Cannot read property 'paymentOption' of undefined" yet the sheet still remains presented correctly.

Expected behavior The function should work as before and not return until the sheet is dismissed either from a successful payment flow, a cancellation, or legitimate error.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Various iPhones
  • OS: iOS 26
  • Browser [e.g. stock browser, safari]
  • Version 0.56.1

Additional context I have not tested this on Android so unknown if the same issue applies there.

rfree18 avatar May 14 '26 21:05 rfree18

Hi @rfree18, are you able to reproduce this issue in a minimal project? I tried to reproduce this in a dummy project with the latest SDK version (0.65.1), RN 0.85, and Expo 56 on an iOS 26.1 simulator, but I was unable to. In the meantime, I'd love to point you to our support channel on our Discord, where we have engineers ready to help you 24/5. Thank you!

joyceqin-stripe avatar May 15 '26 18:05 joyceqin-stripe

I spent quite a bit of time debugging this and attempting to reproduce this in a sample project, but I luckily tracked down the problem to a recently fixed issue: https://github.com/expo/expo/issues/45592. After updating babel-preset-expo to 56.0.8, this is working properly again!

rfree18 avatar May 18 '26 18:05 rfree18