#astardesign_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/1229403149882884106
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
what do you mean by "not working" exactly? that you don't see Apple Pay on your device?
I can see Apple Pay on the emulator but Google Pay isn't showing on my Android emulator
And when I test it with 'isPlatformPaySupported' it returns false ... so it's not supported which is strange
the code you shared is about ApplePay, but your question is about GooglePay?
Oh sorry
Sorry I meant this;
if (!(await isPlatformPaySupported({ googlePay: {testEnv: true} }))) {
Alert.alert('Google Pay is not supported.');
return;
} else {
Alert.alert('Google Pay is supported.!!!');
console.log('google pay supported')
}
This is alerting not suported
dd you follow this guide for Google Pay in Rect Native? https://docs.stripe.com/google-pay?platform=react-native
Yes, except for the PlatformPayButton part, which I don't think is needed? Isn't the Apple pay and Google pay meant to appear in the Stripe paymentsheet overlay?
can you try to follow exactly that guide, and see if it fix the issue?
Okay let me have a try, but why is this part returning false?
if (!(await isPlatformPaySupported({ googlePay: {testEnv: true} }))) {
Alert.alert('Google Pay is not supported.');
return;
} else {
Alert.alert('Google Pay is supported.!!!');
console.log('google pay supported')
}
Shouldn't that be true at the start before it goes into presenting the payment sheet?
Hi there ๐ I'm jumping in as my teammate needs to step away soon. Looking at the thread it looks like you're trying to check whether ApplePay/GooglePay are ready to be used before presenting the payment sheet to your customer. Am I on the right track?