#magnus - react native
1 messages ยท Page 1 of 1 (latest)
Thanks @random nimbus for creating the thread, looking forward to your help!
Does it show up for payment mode, instead of setup?
Yes, I'll send you a screenshot, wait a second
And does merchantCountryCode: DE match your stripe account country?
Yes
I'm sorry it's in german but I hope it's fine anyways
Can you share the min/compile SDK version from android/app/build.gradle?
buildToolsVersion = "30.0.2"
minSdkVersion = 23
compileSdkVersion = 31
targetSdkVersion = 31
supportLibVersion = "28.0.0"
playServicesVersion = "17.0.0" // or find latest version
androidMapsUtilsVersion = "1.3.1"
ndkVersion = "21.4.7075529"
kotlin_version = "1.5.10"
hmm ok thanks, thats above the minimums google specifies
Does google pay work in other contexts on that device?
yes I tried it on Chrome with the Google Pay demo page and there it works
sanity check: can you confirm that you have google pay enabled in your account settings here: https://dashboard.stripe.com/settings/payment_methods
Yes it is enabled, it also works in my website integration
OK thanks
You're welcome
Are there any errors raised via logcat ? (you may need to use adb via a usb cable to get this if its a real device)
I didn't check this tbh, I'll try it out now, please wait
Okay so it doesn't throw any errors or warnings when trying it with adb
ah dang, thanks for checking. I was hoping it would offer some info to go on.
no unfortunately not
Trying to eliminate variables here, and narrow things down
While we continue to poke, can you try cloning and running the example app with the library?
https://github.com/stripe/stripe-react-native#run-the-example-app
The "payments ui complete" screen should show google pay if all is working well: https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentsUICompleteScreen.tsx
Thanks yes I'll try it out
What version of Gradle do I need? I have version 4.2.2 installed but in the demo app I see you use 6.7.1, does this maybe cause an issue?
Hmm it shouldnt cause any run time issues, no, maybe build issues though?
This is the only warning I get when I build and install it on my device: Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
Deprecated shouldnt cause any issues, you get it running?
I got mine working, turns out i needed to uninstall an old build from my simulator, and also needed to brew install gradle again ๐ฉ
i've got gradle 7.3.3 and it works, you may need a new version thats possible
You mean my app or the example app? On the example app I get this error: Could not get resource 'https://jcenter.bintray.com/de/undercouch/gradle-download-task/4.1.1/gradle-download-task-4.1.1.pom'.
Could not HEAD 'https://jcenter.bintray.com/de/undercouch/gradle-download-task/4.1.1/gradle-download-task-4.1.1.pom'. Received status code 502 from server: Bad Gateway
but if its built now, dont worry about that
interesting ๐ค
can you run ./gradlew clean in the android directory?
example/android
specifically
not /android at the root (for the lib)
im trying again with gradle 6
okay
really sorry about the delay on this -- I'm having trouble with my build environment, too
Would you mind emailing in to support@stripe.com and mentioning we spoke about react native in discord? (you can include my handle)
I'd like to continue working on this but I need to get things working here first
Yes okay thanks a lot, I'll send a mail in a minute, thanks for your help!
No problem, appreciate your patience here. Will continue to dig and look forward to helping you sort this out ๐
Thanks, someone on our team will follow up once we know more but it might take some time!