Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Didn't find class "com.stripe.android.uicore.address.AddressRepository" #1708

Open
generosocarbone opened this issue Aug 7, 2024 · 0 comments

Comments

@generosocarbone
Copy link

Describe the bug
Suddenly, while presenting the payment sheet for adding a new card the app crashes.

To Reproduce

 const initPaymentSheetRes: InitPaymentSheetResult = await initPaymentSheet({
    merchantDisplayName: STRIPE_MERCHANT_ID,
    customerId: response.data.customerId,
    customerEphemeralKeySecret: response.data.customerEphemeralKeySecret,
    setupIntentClientSecret: response.data.setupIntentClientSecret,
    returnURL: 'appname://stripe-redirect',
    style: 'alwaysLight',
    billingDetailsCollectionConfiguration: {
      name: PaymentSheet.CollectionMode.ALWAYS,
      address: PaymentSheet.AddressCollectionMode.FULL
    },
    defaultBillingDetails: {
      name: `${user.data?.firstName} ${user.data?.lastName}`,
      phone: user.data?.phoneNumber
    }
})

console.log(initPaymentSheetRes)

const presentPaymentSheetRes = await presentPaymentSheet() << HERE IS THE CRASH

customerId, customerEphemeralKeySecret, and setupIntentClientSecret have the proper format.

Expected behavior
No crash and payment sheet to appear

package.json:

  • "@stripe/stripe-identity-react-native": "0.2.11",
  • "@stripe/stripe-react-native": "^0.37.1",
  • "react-native": "0.73.4",

yarn.lock

Additional context

  1. Older stripe version "^0.36.0" works fine.
  2. I Already tried cleaning the cache or removing node_module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant