#nadeemiqbal-ngi_unexpected

1 messages · Page 1 of 1 (latest)

sour schoonerBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1260467811873062912

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

haughty valve
#

This is my code

private fun onPayClicked(
    paymentSheet: PaymentSheet, paymentIntentClientSecret: String, isLive: Boolean = false
) {
    val configuration: PaymentSheet.Configuration.Builder =
        PaymentSheet.Configuration.Builder(MERCHANT_NAME)

    configuration.appearance(
        PaymentSheet.Appearance.Builder().primaryButton(
            PaymentSheet.PrimaryButton()
        ).build()
    )

    configuration.googlePay(
        PaymentSheet.GooglePayConfiguration(
            environment = if (isLive) PaymentSheet.GooglePayConfiguration.Environment.Production else PaymentSheet.GooglePayConfiguration.Environment.Test,
            countryCode = MERCHANT_COUNTRY_CODE,
            amount = 0L,
            label = "Testing Payment",
            currencyCode = MERCHANT_CURRENCY_CODE,
            buttonType = PaymentSheet.GooglePayConfiguration.ButtonType.Checkout
        )
    )

    paymentSheet.presentWithPaymentIntent(paymentIntentClientSecret, configuration.build())

}

#

Whenever I try with PaymentSheet.GooglePayConfiguration.Environment.Test, GPay is not showing. When I run it with PaymentSheet.GooglePayConfiguration.Environment.Production its showing GPay button.

#

I need to get approval for my client for which I have to show Google the screenshots of the payment process. But I can do this right now.

#

Should I share the screenshots as well ?

rose elbow
#

Yes please

#

Your code looks normal though...

#

qq you have wallet enabled in AndroidManifest.xml?

haughty valve
#

yes

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

Test Stripe
Test GPay

#

Test STRIPE
Production GPay

rose elbow
#

Only change from Test mode to Live mode?

#

The Publishable Key?

haughty valve
#

Publishable key is same i.e. TEST.
Just changing the GooglePayConfiguration env from Test to Production.

#

Publishable Key
pk_test_51PIPzQI0DGZ9CkPIzfQUAihgsOIoTlIiVSY4gFmSsGqA31ZaKTK21mXpn4jDEkPWNewclCIfHZupA014aLTKe73D00RjRtPzar

rose elbow
#

Can you try the suggestion here?

haughty valve
#

Can you please help me ? I am located in Pakistan. I have already added valid payment method

rose elbow
#

Do you have an Android phone which installed the GooglePay app and have a payment in GooglePay app?

haughty valve
#

Yes I have installed Google Wallet app

#

and have real android device

rose elbow
#

And having a credit card on the GooglePay app?

haughty valve
#

Bank is not supporting tap to pay for card.

#

and one phone doesnt have nfc.

rose elbow
#

What do you mean? How tap to pay and nfc related?

#

Anyway I think it's just the testing issue, your app could have been setup correctly already

haughty valve
#

To add card in wallet app these are the errors I got. But in Playstore payment methods card is showing.

rose elbow
#

You can add a card to your GooglePay account via PC browser

#

you just need to login into the same account in your phone

haughty valve
#

let me get back to you in 2 min

#

its added in website.

#

I can purchase anything from my card from playstore.

rose elbow
#

Okie. And which phone are you using?

haughty valve
#

I have 3 devices. Xiaomi Redmi note 9 and Pixel 2xl and pixel 4xl

rose elbow
#

Hmm and all logged in with this account? And don't see GooglePay?

haughty valve
#

yes, logged in with this account and not seeing GPay button in Strip Test and GooglePay Test environment.

#

But showing in Stripe Test and GooglePay Production env.

rose elbow
haughty valve
rose elbow
haughty valve
rose elbow
#

Alright. Do you have colleagues who can test the Android App for you?

haughty valve
#

in same country ?

rose elbow
#

In different country

#

I think it's only because of the testing environment

haughty valve
#

is Apple Pay and Google Pay allowed in Germany ?

#

does it normally work in Germany?

rose elbow
#

Should be working yes

haughty valve
#

ok. let me get my app checked in germany and uae.

#

will connect with you after that. thanks

sour schoonerBOT