#awais_unexpected
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/1218068890882670674
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ 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
Is there necessary to install google pay and atlealt one card to display google pay in paymentsheet?
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
In test mode still I have to install google pay?
Yes, but again that's for the customer
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.
Everything works fine mean? You can open the PaymentSheet and finish a transaction using a test card?
Yes
Did you not have that line elsewhere when it was working?
No
how is your app/build.gradle when it is working?
according to https://docs.stripe.com/payments/accept-a-payment?platform=android&mobile-ui=payment-sheet&lang=node#setup-client-side you should already have that line
I'm working with react native.
Ah okie, sorry! Can you share the full error message here?
Okay
Should I need to add implementation 'com.stripe:stripe-android:20.39.0'
in react native ?
Hello
Yes
First let's look at the concrete error message first
Is stripe dev-help working?
It's showing you don not have permission to send message in this channnel
Okay
Yeah! It's working'
@fluid sentinel looks like you're in the wrong place, this thread is for someone else's question.
- If you have your own thread please chat there.
- If you have a question or a followup to a closed thread use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 to get help (we don't reopen closed threads).
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.
Hi @jolly sun if you remove the problematic line, can you see GooglePay on your PaymentSheet?
Yess
But I cannot see the google pay
I add the problematic line which is mentioned in documentation , I get the mentioned error
That same phone ,is it logged in a Google Account which has a card in its Google Wallet
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)
@jolly sun what version of the stripe-react-native SDK are you using?
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?
I think pretty much yes, but let's open the page above first
Alright... Hmm
What you say ?
That's werid... Can you try installing Google Pay app?
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 ?
No it's the frontend (the app) AFAIK. Have you seen GooglePay on any other app on that same device before?
can you suggest me anyapp where I can see that ?
I don't have any idea
Please tell me , is there one?
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.
Okay
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
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.
Yeah confirm ๐
That's on which app?
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
https://docs.stripe.com/google-pay?platform=react-native#react-native-init
If you use this code, does it alert you?
isPlatformPaySupported = true, right?
Also are you using Test mode?
I used the same code for platform pay button
yes
Alright please use the example code above and see if it alerts you
What do you mean ?
Can I show google pay as payment mehtod on payment sheet in same way ?
I said I used the above code for the platform pay button and it is working
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;
}
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 ?
merchantCountryCode you are putting EU correct? Could you try a different value
just like that
What is your Stripe Account Id? acct_xxx
const { error, paymentOption } = await initPaymentSheet({
// ...
googlePay: {
merchantCountryCode: 'GR',
testEnv: true, // use test environment
},
});
Can you try this setup?
Can you share your full, current code of PaymentSheet in text (just upload the file here)
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
For now, I am using separate button for google pay , which is working fine.
Plesae help me , if you find anything related that.
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
Please try asap.
Okay next time I will be carefull.
for now I'm using
"@stripe/stripe-react-native": "^0.37.0",
"react-native": "0.72.4",
I mean please write to Support using this link
: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