#niccah_error
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1306860693420507157
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! I'm not sure I understand what you mean by I've installed the latest stripe-android on the latest react-native-stripe - stripe-react-native already has stripe-android included. Why are you installing the latest stripe-android?
I've updated the versions under build.gradle to use the latest stripe-android, cause I've been meaning to use a feature in the latest update.
Or should I wait for stripe-react-native to be updated?
Can you share your code snippet where you are using the PaymentSheet?
Thank you for looking into this.
In this snippet there's no error occuring, only when I import StripeProvider.
I've attached the errors here.
give us a while to take a look
Hi @wanton merlin do you use any other Stripe components to accept payments in addition to PaymentSheet?
Atm no. Only PaymentSheets
Ok, because the AddPaymentMethodActivityStarter is a component from the basic integration, which we removed in the latest Andorid SDK.
Can you run ./gradlew clean in your Android project and build the app again?
remove node_modules and package lock file, run npm install again
Ok I'll try again. Thank you Jack
Thank you it worked! Appreciate it, it might be caching. Appreciate it tho.
Ohhh\
One sec
my bad, sorry, I think I got it, I just reverted my changes on build.gradle thats why it worked.
Let me rerun
Really sorry
still happening:
after ./radlew clean
and remove node moduel
Can you share your build.gradle?
Here you go. Sorry
What's the react-native SDK version that you are using in your project?
Ok I know the problem
in react-native SDK 0.39.0 the StripeSdkModule from the react-native SDK is still referencing the AddPaymentMethodActivityStarter https://github.com/stripe/stripe-react-native/blob/v0.39.0/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt#L81
And AddPaymentMethodActivityStarter is already removed in the version of the Stripe Android SDk that you are using.
https://github.com/stripe/stripe-react-native/pull/1765 in the upcoming react-native SDK version, we will remove AddPaymentMethodActivityStarter
So you can either use the old Android SDK version for now, or wait for the new release from react-native SDK