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

Card Wallet Provisioning crashing on iOS

Open thedev132 opened this issue 5 months ago • 1 comments

Describe the bug Card Wallet Provisioning crashing on iOS when clicking the next button in the native popup

To Reproduce Steps to reproduce the behavior:

  1. Click on add to Apple wallet button
  2. click "next" on native popup

Expected behavior Add the card to wallet

Smartphone (please complete the following information):

  • Device: iPhone 13
  • OS: iOS 18.1

Additional context

I'm confused about what to put in for the ephemeralKey prop for the <AddToWalletButton> component. Do I need all of this as an object:

{
  "id": "ephkey_1G4V6eEEs6YsaMZ2P1diLWdj",
  "object": "ephemeral_key",
  "associated_objects": [
    {
      "id": "ic_1GWQp6EESaYspYZ9uSEZOcq9",
      "type": "issuing.card"
    }
  ],
  "created": 1586556828,
  "expires": 1586560428,
  "livemode": false,
  "secret": "ek_test_..."
}

Also I have Sentry error logging and it keeps sending me EXC_BREAKPOINT: Stripe/STPEphemeralKeyManager.swift on every crash.

UPDATE:

After inputting the id, object, associated objects, livemode, and secret fields in that format I still achieve the error. The issue also crashes when testEnv is true.

thedev132 avatar May 24 '25 03:05 thedev132