#noroup_code

1 messages ยท Page 1 of 1 (latest)

stiff steepleBOT
#

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

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

cunning current
#

      const { error } = await initPaymentSheet({
        merchantDisplayName: "Verca",
        customerId: customer,
        customerEphemeralKeySecret: ephemeralKey,
        paymentIntentClientSecret: paymentIntent,
        allowsDelayedPaymentMethods: true,
        applePay: {
          merchantCountryCode: 'US',
        },
        googlePay: {
          merchantCountryCode: 'US'
        },
        defaultBillingDetails: {
          email: user.email
        }
      });

Also updated the initPayment sheet as so

#

Also updated the plugins as so

  "plugins": [
        [
          "expo-camera",
          {
            "cameraPermission": "Allow $(PRODUCT_NAME) to access your camera",
            "microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone",
            "recordAudioAndroid": true
          }
        ],
        [
          "@react-native-google-signin/google-signin",
          {
            "iosUrlScheme": "com.googleusercontent.apps.536645812201-kq8jeb9qm21sqm7ar3h8lpnjacd3rd5l"
          }
        ],
        [
          "@stripe/stripe-react-native",
          {
            "merchantIdentifier": "merchant.com.XXX.verca",
            "enableGooglePay": true
          }
        ],
        "expo-font",
        "react-native-compressor",
        "expo-apple-authentication"
      ],

#

Am I missing something? What am I doing wrong here?

solid reef
#

Hi there, I'm not familiar with this integration. Let me reach out to a colleague.

cunning current
vestal marsh
#

๐Ÿ‘‹ are you using Expo Go here?

#

Are you creating a development build?

cunning current
vestal marsh
#

Gotcha

#

Can you provide a PaymentIntent ID that you are testing with?

#

And are you testing on a real device or simulator?

cunning current
#

Real device, one moment

vestal marsh
cunning current
#

I have a live card in my wallet, let me ceck that link

cunning current
vestal marsh
#

Okay once you grab a PaymentIntent ID then I can take a look at that

cunning current
#

Got it, one moment

cunning current
vestal marsh
#

Thanks, looking

#

Ah have you updated your AndroidManfiest.xml?

cunning current
#

Yes, I added this

<meta-data
  android:name="com.google.android.gms.wallet.api.enabled"
  android:value="true" />
#

within the application

vestal marsh
#

Hmm yeah your PaymentIntent looks fine...

#

Running out of ideas ๐Ÿค”

cunning current
#

should I just do a clean rebuild?

#

let me try that

vestal marsh
#

Yeah let's try that.... everything seems set up right to me.

#

Ah wait

#

Are you in test mode?

#

No you are in prod

#

Nvm

cunning current
#

Cleaning everything and rebuilding now

#

Man, mobile development can be annoying

vestal marsh
#

lol yep so fickle

cunning current
#

Please do not close this ticket yet haha

vestal marsh
#

No worries I won't

vestal marsh
#

@cunning current any update?

cunning current
cunning current
stiff steepleBOT
frigid bolt
#

Hello

cunning current
#

Still facing difficulty with this issue

frigid bolt
#

yeah thinking.. Are you seeing any loglines in your logcat related to wallet API?

cunning current
#

Nothing, this is all I have

      const { error } = await initPaymentSheet({
        merchantDisplayName: "Verca",
        customerId: customer,
        customerEphemeralKeySecret: ephemeralKey,
        paymentIntentClientSecret: paymentIntent,
        allowsDelayedPaymentMethods: true,
        applePay: {
          merchantCountryCode: 'US',
        },
        googlePay: {
          merchantCountryCode: 'US'
        },
        defaultBillingDetails: {
          email: user.email
        }
      });

frigid bolt
#

No no, I'm talking about when you run the app

#

and launch payment sheet

cunning current
#

Yeah, no logs

#

but I seem to perhaps have found the issue

#

In the Stripe Web Dashboard

#

it appears Google Pay was not enabled as a payment method

#

We are golden now ๐Ÿ™‚

#

Thank you all

frigid bolt
#

Oh great! glad you figured it out

cunning current
#

No problem, thank you for your help

#

This merchant is having trouble accepting your payment right now. Try using a different payment method

#

What?

frigid bolt
#

where are you seeing this error?

cunning current
#

In the payment sheet, when I click google pay

frigid bolt
cunning current
#

Oh it's in live mode

frigid bolt
#

In that case, you need to follow google's instruction for production access

cunning current
#

oh does my app need to be in Google Play before I can use this?

frigid bolt
#

Not on the app store but you need Google Pay API access in production mode before you can use Google Pay in live mode

cunning current
#

Hm, I thought Stripe handles this?

frigid bolt
#

We abstract the payment process but the production access needs to be requested by the app developer/platform. This has always been the case.

cunning current
#

Got it, and once approved, do I have to do anything on my end?

frigid bolt
#

Integration wise, no.. Just need to make sure you're not setting testEnv: true in your app (or you can set it to false explicitly)

cunning current
#

Got it, alright sounds easy enough

#

Reading through this, so how does Google Pay associate with my App once I request approval? Trying to understand this part

#

Do I have to create an app with my bundle ID in their portal ?

frigid bolt
#

I believe so, it's part of the business profile you submit iirc