#nadeemiqbal-ngi_unexpected
1 messages · Page 1 of 1 (latest)
👋 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.
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 ?
Yes please
Your code looks normal though...
qq you have wallet enabled in AndroidManifest.xml?
yes
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
Test Stripe
Test GPay
Test STRIPE
Production GPay
Publishable key is same i.e. TEST.
Just changing the GooglePayConfiguration env from Test to Production.
Publishable Key
pk_test_51PIPzQI0DGZ9CkPIzfQUAihgsOIoTlIiVSY4gFmSsGqA31ZaKTK21mXpn4jDEkPWNewclCIfHZupA014aLTKe73D00RjRtPzar
Summary The google account has been added to the Google Pay API Test Cards Allowlist. In the Test environment, the Google pay option is not displayed. Code to reproduce Android version Impacted dev...
Can you try the suggestion here?
- install Google Pay app (https://play.google.com/store/search?q=google+pay&c=apps) and 2) add a payment to Google Pay app.
Enjoy millions of the latest Android apps, games, music, movies, TV, books, magazines & more. Anytime, anywhere, across your devices.
Can you please help me ? I am located in Pakistan. I have already added valid payment method
Do you have an Android phone which installed the GooglePay app and have a payment in GooglePay app?
And having a credit card on the GooglePay app?
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
To add card in wallet app these are the errors I got. But in Playstore payment methods card is showing.
You can add a card to your GooglePay account via PC browser
you just need to login into the same account in your phone
let me get back to you in 2 min
its added in website.
I can purchase anything from my card from playstore.
Okie. And which phone are you using?
I have 3 devices. Xiaomi Redmi note 9 and Pixel 2xl and pixel 4xl
Hmm and all logged in with this account? And don't see GooglePay?
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.
Okie. From same devces can you open Chrome (where logged in with that Google Account) and navigate to https://docs.stripe.com/elements/express-checkout-element. Please capture screen what you see
Nice. How about this: https://docs.stripe.com/stripe-js/elements/payment-request-button
Alright. Do you have colleagues who can test the Android App for you?
in same country ?
is Apple Pay and Google Pay allowed in Germany ?
does it normally work in Germany?
Should be working yes
ok. let me get my app checked in germany and uae.
will connect with you after that. thanks