#dawidzawada - GPay
1 messages · Page 1 of 1 (latest)
hi there! Is there a reason why you're not using the mobile payment element with our React Native SDK? i.e. https://stripe.com/docs/payments/accept-a-payment?platform=react-native
Yes - The reason is the designs unfortunately
can you share the relevant code snippet(s) here, will take a look to see if we can spot anything from that
Sure, give me a minute
That basically my code - I have there my old g pay button - but it did not pass the google requirements - And thats why I wanted to use the stripe one. I have there also my apple pay code but its only for ios
Gpay stripe button is on the line 158
Hi there, are you testing Google Pay in Simulator or a real phone?
You need to use a real phone to test Google Pay, and also you need to have an active credit card in your Google Pay account
Its not showing up also on real android
But the rest Gpay logic is working as it should - just the gpay button is not showing up
does initGooglePay return any error?
Nope - the gpay payments are working but there are connected to simple react native button with gpay label - only the GooglePayButton is not working
Just want to be clear about the problem, you are saying the <GooglePayButton /> is not showing?
Change the type to standard ?
When i'm setting style={{ height: 100 }} - height increase but its still invisible
<GooglePayButton
style={{ width: 100, height: 40, marginTop: 30 }}
type="standard"
onPress={...
} />```
Try something like this
You can adjust the look and feel by adjusting the style property
I believe it's to do with the style.
Thank you so much for your help!
No problem, happy to help!