#MILAN-GooglePay

1 messages · Page 1 of 1 (latest)

minor mango
#

Hi there, do you have an active card in your Google pay account?

tame falcon
#

No

minor mango
#

OK. You need to have an active card in Google Pay in order to use Google Pay in your Android app.

Also did you register a readyCallback? if so, can you check if the isReady=true in the readyCallback?

tame falcon
#

readyCallback. is always giving me the false. Actually, I have tried to add a test card but google pay has not allowed me to add it. So let me check with the real card.

minor mango
#

Yup, please add a real card and test again.

Also you should only invoke present() if isReady=true.

tame falcon
#

Ok

tame falcon
#

I can't add card

#

Your transaction cannot be completed.[OR-TAPSH-08]

minor mango
#

Is this an error from Google pay? how about using another card?

tame falcon
#

Yes, the error getting from Gpay.

tame falcon
#

GooglePay Payment Failed java.lang.RuntimeException: Google Pay failed with error 412

#

Cad added successfully

#

@minor mango

minor mango
#

is isReady = true?

tame falcon
#

Yes

#

INTERNAL_ERROR

minor mango
#

OK, can you send me the stacktrace?

tame falcon
#

java.lang.RuntimeException: Google Pay failed with error with 412 and errorCode

minor mango
#

Full stacktrace please?

tame falcon
#

GooglePay Payment Failed java.lang.RuntimeException: Google Pay failed with error 412: 412:
at com.stripe.android.googlepaylauncher.GooglePayPaymentMethodLauncherActivity.onActivityResult(GooglePayPaymentMethodLauncherActivity.kt:133)
at android.app.Activity.dispatchActivityResult(Activity.java:7590)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4416)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4465)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

#

@minor mango

minor mango
#

Ok, so the payment is failed. can you share with me the payment intent ID?

tame falcon
#

I have not provided payment intent ID anywhere

minor mango
#

How did you create the payment intent?

tame falcon
#

If you confirm your payment on your server, you can use GooglePayPaymentMethodLauncher to only collect a PaymentMethod instead of confirm payment.

So as per this i need to get the paymentMethodId and pass it to server.

minor mango
#

OK, so you are collecting a paymentmethod without making a charge

tame falcon
#

yes, I need to block the amount for some period of time.

#

After that time we will release that blocked amount.

minor mango
#

Are you in Test environment?

tame falcon
#

Yes

minor mango
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

tame falcon
#

OK

minor mango
#

Also can you share the code where you initialize the GooglePayPaymentMethodLauncher ?

tame falcon
#

googlePayPaymentMethodLauncher = GooglePayPaymentMethodLauncher(
activity = this,
config = GooglePayPaymentMethodLauncher.Config(
environment = GooglePayEnvironment.Test,
merchantCountryCode = "IN",
merchantName = "Test Test"
),
readyCallback = ::handleGooglePayReadyToUse,
resultCallback = ::handleGooglePayResult
)

minor mango
tame falcon
#

Ok, but what does it mean? because we are using google pay in India.

#

That's why payment is failed?

minor mango
#

Stripe doesn't support Google Pay in India.

tame falcon
#

Ohh, so it will work for other countries? Because the product which I am developing is working in other supported country.

minor mango
#

Yes, you can refer to doc that I sent earlier for the list of supported countries.

tame falcon
#

Ok, I am sorry but how we can test it in India to ensure that it will work in other countries?

#

What if I change the merchantCountryCode for testing purspose?

minor mango
#

You need to use a Stripe account registered under one of the supported country and set the merchantCountryCode accordingly.

minor mango
#

Hi @tame falcon can you send me the merchant ID? I'd like to check if the payment failure is due to country.

tame falcon
#

Yes

#

If I change the merchantCountryCode from IN to US then it is woriking fine