#noroup_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1414663029924036892
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
const { error } = await initPaymentSheet({
merchantDisplayName: "Verca",
customerId: customer,
customerEphemeralKeySecret: ephemeralKey,
paymentIntentClientSecret: paymentIntent,
allowsDelayedPaymentMethods: true,
applePay: {
merchantCountryCode: 'US',
},
googlePay: {
merchantCountryCode: 'US'
},
defaultBillingDetails: {
email: user.email
}
});
Also updated the initPayment sheet as so
Also updated the plugins as so
"plugins": [
[
"expo-camera",
{
"cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
"microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone",
"recordAudioAndroid": true
}
],
[
"@react-native-google-signin/google-signin",
{
"iosUrlScheme": "com.googleusercontent.apps.536645812201-kq8jeb9qm21sqm7ar3h8lpnjacd3rd5l"
}
],
[
"@stripe/stripe-react-native",
{
"merchantIdentifier": "merchant.com.XXX.verca",
"enableGooglePay": true
}
],
"expo-font",
"react-native-compressor",
"expo-apple-authentication"
],
Am I missing something? What am I doing wrong here?
Hi there, I'm not familiar with this integration. Let me reach out to a colleague.
Thank you, I appreciate that
I am actually! But I am not using Expo Go
Gotcha
Can you provide a PaymentIntent ID that you are testing with?
And are you testing on a real device or simulator?
Real device, one moment
Do you have a live card in your wallet? And if you go to https://docs.stripe.com/elements/express-checkout-element/accept-a-payment on that device do you see the Google Pay button appear?
I have a live card in my wallet, let me ceck that link
Yes, I see the Google Pay button!
Okay once you grab a PaymentIntent ID then I can take a look at that
Got it, one moment
pi_3S594BLbE4j2Km3D04pJESTs
Here you go
Yes, I added this
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
within the application
Yeah let's try that.... everything seems set up right to me.
Ah wait
Are you in test mode?
No you are in prod
Nvm
lol yep so fickle
Please do not close this ticket yet haha
No worries I won't
@cunning current any update?
I am working from home and doing this simultaneous haha
Sigh, no luck
Hello
yeah thinking.. Are you seeing any loglines in your logcat related to wallet API?
Nothing, this is all I have
const { error } = await initPaymentSheet({
merchantDisplayName: "Verca",
customerId: customer,
customerEphemeralKeySecret: ephemeralKey,
paymentIntentClientSecret: paymentIntent,
allowsDelayedPaymentMethods: true,
applePay: {
merchantCountryCode: 'US',
},
googlePay: {
merchantCountryCode: 'US'
},
defaultBillingDetails: {
email: user.email
}
});
Yeah, no logs
but I seem to perhaps have found the issue
In the Stripe Web Dashboard
it appears Google Pay was not enabled as a payment method
We are golden now ๐
Thank you all
Oh great! glad you figured it out
No problem, thank you for your help
This merchant is having trouble accepting your payment right now. Try using a different payment method
What?
where are you seeing this error?
In the payment sheet, when I click google pay
Are you using it in live mode or test mode?
If live mode, you need approval from Google - https://docs.stripe.com/google-pay?platform=react-native#going-live-react-native
Oh it's in live mode
oh does my app need to be in Google Play before I can use this?
Not on the app store but you need Google Pay API access in production mode before you can use Google Pay in live mode
Hm, I thought Stripe handles this?
We abstract the payment process but the production access needs to be requested by the app developer/platform. This has always been the case.
Got it, and once approved, do I have to do anything on my end?
Integration wise, no.. Just need to make sure you're not setting testEnv: true in your app (or you can set it to false explicitly)
Got it, alright sounds easy enough
Reading through this, so how does Google Pay associate with my App once I request approval? Trying to understand this part
Do I have to create an app with my bundle ID in their portal ?
I believe so, it's part of the business profile you submit iirc