#syedhussain_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/1339195903038455880
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
To clarify, your build works with 21.4.2?
yes build works, but crashes on initPaymentSheet
Crashes how? What's the error?
Error: Exception in HostObject::get for prop 'StripeSdk': java.lang.NoClassDefFoundError: Failed resolution of: Lcom/stripe/android/view/AddPaymentMethodActivityStarter$Result;, js engine: hermes [Component Stack]
It gives this error
when I remove
implementation("com.stripe:stripe-android:21.4.2")
it works fine, but no google pay button appears on the bottom sheet
Oh, I thought you said 21.4.2 resolved the error:
commented this, error resolved but there was no google play button
OK, do you meet all the prerequisites for Google Pay? https://docs.stripe.com/google-pay?platform=react-native
nope, did not resolve, by commented I meant removed the line
yes
this is my code
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
have also added this in manifest
Where are you currently located?
Karachi, Pakistan
And you have a real credit card in your Google Pay wallet on your device?
nope, using testEnv at the moment
You still need a card in your wallet, as per the doc I linked. Otherwise the wallet button won't load
We replace the card with a test token in test mode
You said it wasn't if you remove that line?
so If I remove that line and add card in google pay wallet, it will work fine, right?
Perhaps there's an incompatibility between the versions of libaries and SDKs you're using. Hard to say without more details on that
Should do, try it
ok, will let you know the results