google-services
google-services copied to clipboard
GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION
Step 1: Are you in the right place?
- For issues or feature requests related to the code in this repository file a Github issue.
- For general technical questions, post a question on StackOverflow tagged appropriately.
Step 2: Describe your environment
- Device: one plus 8 pro - phone ,
- OS version: android version 12 , api level 31
- SDK version: sdk on mac android tiramisu api level 33
- [Android] Google Play Services version: 18.0.1
Step 3: Describe the problem:
I am using an sdk that initiates a google pay payment sdk : "com.judopay:judokit-android:4.0.0".
I am trying to open the activity for google pay payments however on the ui i see , Developer Error Exception , and in my logcat i see .
[GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/cclog zpc: Long live credential not available.
Steps to reproduce:
- follow the setps in https://docs.judopay.com/Content/Mobile/Android.htm , create a google pay widget
- try to run the app
Observed Results:
- What happened? This could be a description, log output, etc. E [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/cclog zpc: Long live credential not available. at lgl.a(:com.google.android.gms@[email protected] (190408-509319212):8) at lgs.c(:com.google.android.gms@[email protected] (190408-509319212):3) at ley.l(:com.google.android.gms@[email protected] (190408-509319212):47) at gov.n(:com.google.android.gms@[email protected] (190408-509319212):35) at gov.e(:com.google.android.gms@[email protected] (190408-509319212):77) at gov.h(:com.google.android.gms@[email protected] (190408-509319212):0) at lat.a(:com.google.android.gms@[email protected] (190408-509319212):3) at lba.I(:com.google.android.gms@[email protected] (190408-509319212):5) at lba.K(:com.google.android.gms@[email protected] (190408-509319212):10) at lap.q(:com.google.android.gms@[email protected] (190408-509319212):4) at yyp.b(:com.google.android.gms@[email protected] (190408-509319212):8) at com.google.android.gms.clearcut.uploader.QosUploaderChimeraService.g(:com.google.android.gms@[email protected] (190408-509319212):108) at com.google.android.gms.clearcut.uploader.QosUploaderChimeraService.a(:com.google.android.gms@[email protected] (190408-509319212):2) at atlx.call(:com.google.android.gms@[email protected] (190408-509319212):4) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at aaqy.c(:com.google.android.gms@[email protected] (190408-509319212):6) at aaqy.run(:com.google.android.gms@[email protected] (190408-509319212):7) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at aawe.run(:com.google.android.gms@[email protected] (190408-509319212):0) at java.lang.Thread.run(Thread.java:1012) 2023-02-24 16:14:30.964 8637-12917 AuthPII pid-8637 E Message is Long live credential not available. zpc: Long live credential not available. at lgl.a(:com.google.android.gms@[email protected] (190408-509319212):8) at lgs.c(:com.google.android.gms@[email protected] (190408-509319212):3) at ley.l(:com.google.android.gms@[email protected] (190408-509319212):47) at gov.n(:com.google.android.gms@[email protected] (190408-509319212):35) at gov.e(:com.google.android.gms@[email protected] (190408-509319212):77) at gov.h(:com.google.android.gms@[email protected] (190408-509319212):0) at lat.a(:com.google.android.gms@[email protected] (190408-509319212):3) at lba.I(:com.google.android.gms@[email protected] (190408-509319212):5) at lba.K(:com.google.android.gms@[email protected] (190408-509319212):10) at lap.q(:com.google.android.gms@[email protected] (190408-509319212):4) at yyp.b(:com.google.android.gms@[email protected] (190408-509319212):8) at com.google.android.gms.clearcut.uploader.QosUploaderChimeraService.g(:com.google.android.gms@[email protected] (190408-509319212):108) at com.google.android.gms.clearcut.uploader.QosUploaderChimeraService.a(:com.google.android.gms@[email protected] (190408-509319212):2) at atlx.call(:com.google.android.gms@[email protected] (190408-509319212):4) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at aaqy.c(:com.google.android.gms@[email protected] (190408-509319212):6) at aaqy.run(:com.google.android.gms@[email protected] (190408-509319212):7) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at aawe.run(:com.google.android.gms@[email protected] (190408-509319212):0) at java.lang.Thread.run(Thread.java:1012) 2023-02-24 16:14:30.964 8637-12917 Auth pid-8637
Expected Results:
- Expected googlepay activity to open up .
Relevant Code:
val message: String = args.getString(0) val amount = Amount.Builder() .setAmount("150.50") .setCurrency(Currency.GBP) .build()
val reference = Reference.Builder()
.setConsumerReference("test-123")
.build()
val authorization = PaymentSessionAuthorization.Builder()
.setPaymentSession("teset123")
.setApiToken("123")
.build()
var billingAddressParams = GooglePayBillingAddressParameters(
format = GooglePayAddressFormat.MIN,
phoneNumberRequired = true
)
var shippingAddressParams = GooglePayShippingAddressParameters(
phoneNumberRequired = true
)
var googlePayConfiguration = GooglePayConfiguration.Builder()
.setTransactionCountryCode("IND")
.setEnvironment(GooglePayEnvironment.TEST)
.setIsEmailRequired(true)
.setIsBillingAddressRequired(true)
.setBillingAddressParameters(billingAddressParams)
.setIsShippingAddressRequired(true)
.setShippingAddressParameters(shippingAddressParams)
.build()
val builder = Judo.Builder(PaymentWidgetType.PRE_AUTH_GOOGLE_PAY)
.setAuthorization(authorization)
.setJudoId("100444405")
.setAmount(amount)
.setReference(reference)
.setIsSandboxed(true)
.setGooglePayConfiguration(googlePayConfiguration)
.build()
val intent = Intent(cordova.context, JudoActivity::class.java);
intent.putExtra(JUDO_OPTIONS, builder);
cordova.activity.startActivity(intent)
// TODO(you): code here to reproduce the problem