#astardesign_code

1 messages ยท Page 1 of 1 (latest)

tulip cloudBOT
#

๐Ÿ‘‹ 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.

opal turretBOT
brittle flare
#

hi there!

#

what do you mean by "not working" exactly? that you don't see Apple Pay on your device?

fresh gyro
#

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

brittle flare
#

the code you shared is about ApplePay, but your question is about GooglePay?

fresh gyro
#

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

brittle flare
fresh gyro
#

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?

brittle flare
#

can you try to follow exactly that guide, and see if it fix the issue?

fresh gyro
#

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?

radiant cedar
#

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?