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.

Google Pay Error on Expo. Works well on website not on android.

See original GitHub issue

I’m getting a request failed, an unexpected error has occured. Please try again later. [OR_BIBED_07] error when I try to pay using google pay on my android app. Card payment works well. Apple pay works well. Gpay works well on my website.

I’m using payment sheets on my expo app.

I’m passing the right paymentSheets parameters.

const res = await initPaymentSheet({
                customerId: customer,
                customerEphemeralKeySecret: ephemeralKey,
                paymentIntentClientSecret: paymentIntent,
                applePay: true,
                googlePay: true,
                merchantCountryCode: 'AE',
                merchantDisplayName: "***",
                customFlow: false,
                style: 'alwaysDark',
                testEnv: false
            });

I’ve set my plugins in my app.json file.

"plugins": [
      [
        "@stripe/stripe-react-native",
        {
          "merchantIdentifier": "merchant.com.***,
          "enableGooglePay": true
        }
      ]
    ]

Am I missing something else?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17

github_iconTop GitHub Comments

5reactions
jvgaetacommented, Apr 18, 2022

@charliecruzan-stripe where do I pass the google merchant id?

In the expo docs, it states merchantIdentifier is ios only: merchantIdentifier: iOS only. This is the Apple merchant ID obtained [here](https://stripe.com/docs/apple-pay?platform=react-native). Otherwise, Apple Pay will not work as expected. If you have multiple merchantIdentifiers, you can set them in an array.

https://stripe.com/docs/google-pay?platform=react-native only mentions merchantIdentifier in the context of apple pay.

2reactions
charliecruzan-stripecommented, Apr 13, 2022

Gotchya, yeah that is what would cause this error for sure. I’m going to close this for now but let me know if that doesn’t fix it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Pay not working? Here's a few quick fixes
Google Pay not working? Here's a few quick fixes · Update the Google Pay App · Check Your Phone Number · Verify Your...
Read more >
Expo only working on web and fails on Android with multiple ...
Now I'm just wondering why the deployment to Android is not working. When I deploy it to web it works great without any...
Read more >
Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build. ... For example, you might see something like this on your...
Read more >
Authenticating Your Client | Google Play services
If you've published your app using Play App Signing, a requirement when using Android App Bundle, you can get your SHA-1 from the...
Read more >
Stripe google pay error on expo : r/reactnative - Reddit
I've used stripe's paymentSheets on my expo app and Gpay doesn't work on android devices. Works well on my checkout sessions in my...
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 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