stripe-react-native: Google Pay Error on Expo. Works well on website not on android.
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?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17
@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.
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!