#awais_unexpected

1 messages ยท Page 1 of 1 (latest)

stiff martenBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

spark pawnBOT
tame basin
#

๐Ÿ‘‹ Can you put here the full error message, and a screenshot if possible?

#
implementation 'com.stripe:stripe-android:20.39.0'

This line is for integrating Stripe Android SDK in genenral, not about just GooglePay

jolly sun
#

Is there necessary to install google pay and atlealt one card to display google pay in paymentsheet?

tame basin
#

Yes

#

But we are talking about your integration, not the customer, right?

#

That's the requirement for customer in order to see GooglePay on your app, after you have configured correctly

jolly sun
#

In test mode still I have to install google pay?

tame basin
#

Yes, but again that's for the customer

jolly sun
#

WHen I press button to open paymentsheet then I got the error after adding "implementation 'com.stripe:stripe-android:20.39.0'"
and if I don't add above one , then everything work fine.

tame basin
#

Everything works fine mean? You can open the PaymentSheet and finish a transaction using a test card?

jolly sun
#

Yes

tame basin
#

Did you not have that line elsewhere when it was working?

jolly sun
#

No

tame basin
#

how is your app/build.gradle when it is working?

jolly sun
#

I'm working with react native.

tame basin
#

Ah okie, sorry! Can you share the full error message here?

jolly sun
#

Okay

#

Should I need to add implementation 'com.stripe:stripe-android:20.39.0'
in react native ?

fluid sentinel
#

Hello

jolly sun
#

Yes

tame basin
#

First let's look at the concrete error message first

fluid sentinel
#

Is stripe dev-help working?

#

It's showing you don not have permission to send message in this channnel

jolly sun
#

Okay

jolly sun
fluid sentinel
stiff martenBOT
#

@fluid sentinel looks like you're in the wrong place, this thread is for someone else's question.

Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.

tame basin
#

Hi @jolly sun if you remove the problematic line, can you see GooglePay on your PaymentSheet?

jolly sun
jolly sun
#

But I cannot see the google pay

#

I add the problematic line which is mentioned in documentation , I get the mentioned error

tame basin
#

That same phone ,is it logged in a Google Account which has a card in its Google Wallet

jolly sun
#

No

#

I didn't install the google pay yet.

tame basin
#

Okie, on that device are you logging in Google?

#

Open this page and see if you see a GooglePay button in the top

#

(open by the device)

torpid totem
#

@jolly sun what version of the stripe-react-native SDK are you using?

jolly sun
#

I'm using 0.37.0

#

"@stripe/stripe-react-native": "^0.37.0",

#

Should I need to install the google pay then I can see google pay on payment sheet?

tame basin
#

I think pretty much yes, but let's open the page above first

jolly sun
#

yes , google pay button is showing on same mobile.

tame basin
#

Alright... Hmm

jolly sun
#

What you say ?

tame basin
#

That's werid... Can you try installing Google Pay app?

jolly sun
#

I'm from pakistan , it is showing , it is not available in pakistan

#

Do you think , is there any configuration that I need to do on backend ?

tame basin
#

No it's the frontend (the app) AFAIK. Have you seen GooglePay on any other app on that same device before?

jolly sun
#

can you suggest me anyapp where I can see that ?

#

I don't have any idea

#

Please tell me , is there one?

tame basin
#

No, just asking if you happen to have one

#

This is a bit of a tedious idea, but you also try the example app from Stripe ReactNative SDK

#

But do you have any friend/colleague which has an Adroid phone who have seen GooglePay?

#

If not, the last thing to try is minimizing your project as small as possible, then initialize a Support ticket and send it over, also mentioning this Discord thread. We would be happy to look closer.

jolly sun
#

Okay

tame basin
#

To clarify I think the problematic line is unnecessary and your integration should be seeing the GooglePay button, just that there could be issue with the device or your IP

jolly sun
#

Now I have comment it out and I test it and send you to ss.

#

just for the clarification.

#

Now payment sheet has opened successfully.

tame basin
#

Yeah confirm ๐Ÿ‘

jolly sun
#

Hey

#

Platform pay button is working fine

#

@tame basin

tame basin
#

That's on which app?

jolly sun
#

on same app

#

but I want to show it on payment sheet

#

It'is not showing on payment sheet , but showing as separate platform button

tame basin
#

isPlatformPaySupported = true, right?

#

Also are you using Test mode?

jolly sun
#

I used the same code for platform pay button

jolly sun
tame basin
#

Alright please use the example code above and see if it alerts you

jolly sun
#

What do you mean ?

#

Can I show google pay as payment mehtod on payment sheet in same way ?

jolly sun
tame basin
#

meaning if you put breakpoints here it won't get into Alert, correct?

if (!(await isPlatformPaySupported({ googlePay: {testEnv: true} }))) {
  Alert.alert('Google Pay is not supported.');
  return;
}
jolly sun
#

Yess

#

As platform pay button is working but issue is that google pay method is not showing on payment sheet , how can I resolve it ?

tame basin
#

merchantCountryCode you are putting EU correct? Could you try a different value

jolly sun
#

just like that

tame basin
#

What is your Stripe Account Id? acct_xxx

jolly sun
#

acct_1N1ElTC3KbmyymYf

#

this is my stripe account id

tame basin
#
const { error, paymentOption } = await initPaymentSheet({
  // ...
  googlePay: {
    merchantCountryCode: 'GR',
    testEnv: true, // use test environment
  },
});
#

Can you try this setup?

jolly sun
#

I try

#

I tried

#

still not showing google pay

#

What can be issue ?

tame basin
#

Can you share your full, current code of PaymentSheet in text (just upload the file here)

jolly sun
tame basin
#

Your code looks good. Sorry I think I ran out of idea

#

Could you write to Support but mentioned that you have a conversation here (include this Discord thread)? We will grab the ticket from there and investigate further

#

In the meantime, you can find your colleague and try to test on different devices

jolly sun
#

For now, I am using separate button for google pay , which is working fine.

#

Plesae help me , if you find anything related that.

tame basin
#

Yeah acked, but really have no idea. Would be nice if we can try the project ourself

#

When you write to Support, please also provide a minimal version of your project which can reproduce

jolly sun
#

for now I'm using
"@stripe/stripe-react-native": "^0.37.0",
"react-native": "0.72.4",

tame basin
#

I mean please write to Support using this link

quick sealBOT
#

:question: Have a non-technical question, account issue, or need one-on-one support?
We wish we could help, but this community is focused on developers and technical discussions. Our support team will be able to assist you better than we can: https://support.stripe.com/contact