#gasper_gpay-react-native
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/1371456668008710229
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Are you able to log any details/errors in your application when you call initPaymentSheet and the button is tapped?
Do you have the ID of a payment that throws that error (pi_xxx)?
you mean payment intent ID?
Yes
just a sec
Hi, taking over as my teammate needs to step away. Let me catch up.
tnx!
From looking at your account, I see that Apple Pay, https://dashboard.stripe.com/test/logs/req_CXzkwwilVrKkWX is working fine. It looks like it should work: https://docs.stripe.com/payments/accept-a-payment?platform=react-native#add-google-pay
Can you share the errors on your application when the button is pressed?
apple pay works fine yes
when button is pressed we only get An internal error occured nothing else
export const initializePaymentSheet = async setupIntent => {
const { error } = await initPaymentSheet({
merchantDisplayName: 'merchant',
customerId: setupIntent.customerId,
setupIntentClientSecret: setupIntent.clientSecret,
returnURL: 'merchant://stripe-redirect',
googlePay: {
merchantCountryCode: rootStore.userStore.user?.serviceCountryData.code,
testEnv: Config.NAME !== 'PRODUCTION',
},
style: 'alwaysLight',
applePay: {
merchantCountryCode: rootStore.userStore.user?.serviceCountryData.code,
},
billingDetailsCollectionConfiguration: {
address: 'never',
phone: 'never',
email: 'never',
name: 'never',
},
appearance: {
primaryButton: {
colors: {
background: Colors.buttonBlue,
},
},
},
primaryButtonLabel: i18next.t('paymentSheet.pay'),
});
return error;
};
is there any misconfig in above code?
That seems right. Can you try from a different device?
woll do
will do*
Hi there ๐ taking over as my teammate needs to step away soon.
Something else I'd be interested in hearing the results of, is what happens if you hardcode the Google Pay values rather than pulling them from variables:
merchantCountryCode: rootStore.userStore.user?.serviceCountryData.code,
testEnv: Config.NAME !== 'PRODUCTION',
},```
gasper_gpay-react-native