#julio-googlepay-reactnative

1 messages ยท Page 1 of 1 (latest)

wicked juniper
sterile grove
#

not sure what your asking for, im not using stripe JS

wicked juniper
#

at the top of the page, there's the PaymentRequest button, it helps to confirm that your device is properly configured with Google Pay. So I'm asking what you see on that page at the top

sterile grove
#

ahhh ok

#

so i should check on my mobile

#

wait 2s

wicked juniper
#

yes on the device where you are trying your RN app

sterile grove
#

ok a bottomSheet appear and i can choose between two accounts

wicked juniper
#

I don't know what you call "a bottomSheet" appears I'm sorry. I just need to know if you see the exact button I see

sterile grove
#

ahh

#

i see the Gpay button

#

when i press it, a bottomSheet ( some sort of a modal but not taking the entire screen ) appears and i can choose with which account i must pay

wicked juniper
#

Okay can you share a bit more details like your exact code?

sterile grove
#

ok this is my configuration initPaymentSheet

      customerId: intent.customer,
      customerEphemeralKeySecret: intent.ephemeralKey,
      setupIntentClientSecret: intent.setupIntent,
      merchantDisplayName: STRIPE_MERCHANT_DISPLAY_NAME, // mandatory on Android
      primaryButtonColor: theme.callToAction,
      googlePay: true,
      applePay: true,
      merchantCountryCode: 'FR',
      style: 'alwaysLight',
      testEnv: true,
    })```
#

build.gradle looks like this

wicked juniper
#

thanks let me ask my team I'll be back when I have some advice

sterile grove
#

and last, my androidManifest

#

yeah ok

wicked juniper
#

do you have a PaymentIntent id?

sterile grove
#

rather a SetupIntent ? do you want specific one ?

wicked juniper
#

okay so my colleague says that because you use SI you have to explicitly pass a currency

sterile grove
#

hum how so ?

#

with the init of paymentSheet ?

wicked juniper
#

yeah, give me a few minutes I'll give you a more explicit answer

gusty grove
#

ah actually, sorry.

#

currency is required but it's not possible for you to pass it.

sterile grove
#

ahha

#

nice one

gusty grove
#

until that's merged unfortunately GPay won't work with a SetupIntent.

sterile grove
#

no wayy

#

when will it be merged ?

#

so there is no workaround atm ?

gusty grove
#

as soon as possible! I'll bump this internally again. And no workaround for now unless you modify the React Native SDK yourself, which is really not feasible.

#

so for now I'd just carry on with the rest of the integration and keep an eye out for updates to the SDK

sterile grove
#

okay

#

thx for the reactivness anyway as usual

#

good evening ๐Ÿ˜‰

#

( last question, this issue is the same for ApplePay ? )

#

u already left ? ๐Ÿ˜ข

gusty grove
#

hmm, I was only gone for a moment

#

good question though, I'm not sure

#

trying to find out, so bear with me for a while