question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AndroidPay test environment

See original GitHub issue

Trying 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)

2018-08-31 16 58 07 2018-08-31 16 58 18 img_0974 android

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cjvilla2012commented, Sep 29, 2018

@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();

2reactions
perfectdimcommented, Aug 31, 2018

solved. This should be in application tag =)

<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />

my fault ))

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test card suite | Google Pay API for Android
The new test card suite empowers Google Pay developers to run integration and API tests without the need to add a real credit...
Read more >
Testing - Google Pay - Ingenico ePayments Developers
Google Pay™ can be tested with the sample cards provided by Google. You can request access to the test card suite of Google...
Read more >
Step 5: Test and start using Google Pay
We recommend you test your integration before you let customers know they can use Google Pay to pay you. This testing ensures that...
Read more >
Unable to add test card in Google Pay TEST environment and ...
The way the test environment works for Google Pay is slightly different to the sandboxes some payment providers offer.
Read more >
Test your Google Play Billing Library integration
License testers have access to test payment methods. Here are some additional details about the test purchase process: Test purchases use the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found