AndroidPay test environment
See original GitHub issueTrying to work with NativePay using tipsi-stripe. ApplePay works perfectly, both dev and prod mode. AndriodPay didn’t work in test mode, in prod and TEST mode it said that we need to be accepted by google (its ok), but to be accepted we need to provide APK with working test mode. On Android even deviceSupportsNativePay and canMakeNativePayPayments method crush application with critical error.
Environment
-
tipsi-stripe
version: “5.6.0” -
iOS or Android: Android issue
-
OS version: sdk 25,26,27 tried on MI, Redmi5, Samsung, Note, Pixel
-
React-Native version: “0.56.0”
-
(Android only)
com.google.firebase:firebase-core
version: 16.0.1 -
(Android only)
com.google.android.gms:play-services-base
version: 15.0.1 -
android.compileSdkVersion 26
-
android.buildToolsVersion 26.0.3
-
android.defaultConfig.minSdkVersion 23
-
android.defaultConfig.targetSdkVersion 26
-
android.defaultConfig.multiDexEnabled (if exists)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top GitHub Comments
@CelsiusWilliams You need to call setOptions before using any other methods. The Android code has a default value for the Environment that is invalid and throws an Exception not handled by the library. The setOptions method sets the Environment.
E.g.:
stripe.setOptions({ publishableKey: ‘pk_test_fromstripe’, merchantId: ‘applemerchantid’, // Optional androidPayMode: ‘test’, // Android only }) const paymentSupported = await stripe.deviceSupportsNativePay();
solved. This should be in application tag =)
my fault ))