#dawidzawada - GPay

1 messages · Page 1 of 1 (latest)

vernal scaffold
teal blaze
#

Yes - The reason is the designs unfortunately

vernal scaffold
#

can you share the relevant code snippet(s) here, will take a look to see if we can spot anything from that

teal blaze
#

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

sterile burrow
#

Hi there, are you testing Google Pay in Simulator or a real phone?

teal blaze
#

Simulator in both cases android and iphone

#

I can have a quick look at real device

sterile burrow
#

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

teal blaze
#

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

sterile burrow
#

does initGooglePay return any error?

teal blaze
#

Nope - the gpay payments are working but there are connected to simple react native button with gpay label - only the GooglePayButton is not working

sterile burrow
#

Just want to be clear about the problem, you are saying the <GooglePayButton /> is not showing?

teal blaze
#

Yes

#

I can see that it kinda renders somehow

#

Because

sterile burrow
#

Change the type to standard ?

teal blaze
#

When i'm setting style={{ height: 100 }} - height increase but its still invisible

sterile burrow
#
<GooglePayButton
  style={{ width: 100, height: 40, marginTop: 30 }}
  type="standard"
  onPress={...
} />```
#

Try something like this

teal blaze
#

Ok

#

Yayyy it worked

#

But its small

#

What was the issue?

sterile burrow
#

You can adjust the look and feel by adjusting the style property

#

I believe it's to do with the style.

teal blaze
#

Thank you so much for your help!

sterile burrow
#

No problem, happy to help!