-
Notifications
You must be signed in to change notification settings - Fork 15
Unexpected response code 400 #4
Comments
Hi i am having the same issue. did you manage to fix this? |
I'm not solving this issue. Still waiting. |
damm ok |
Hi, I have the same problem :( |
guys got any solution? same problem here SO https://stackoverflow.com/questions/53320259/add-loyalty-card-to-google-pay-via-google-play-services-api, please upvote! is there any way to enable debugging for google wallet api? like someobject.setenablelogging()
|
Hi to all. I've successfully implemented app with Merchant center
Application. Wallet request builder
//Replace "${something}" with your values noted previously
final LoyaltyWalletObject loyaltyWalletObject = LoyaltyWalletObject.newBuilder()
.setClassId("${your_issuer_id}.${your_class_id}")
.setId("${your_issuer_id}.${some_unque_name}")
.setIssuerName("${your_issuer_name}")
.setProgramName("${your_program_name}")
.setState(WalletObjectsConstants.State.ACTIVE)
.setAccountId("1000") //Your user id
.setAccountName("John Doe") //User name
.setBarcodeType("qrCode")
.setBarcodeValue("Hello world!")
.build(); Whitelist your app with SHA1 fingerprintExplained here: https://developers.google.com/pay/passes/guides/get-started/basic-setup/get-access-to-android-sdk#obtain-credentials-to-whitelist-your-app These key points helped me successfully add a loyalty card to Google Pay from my app. |
package com.google.checkout.android.demo; public class MainActivity extends FragmentActivity
// public static final Scope WOB =
// UriData uri1 = new UriData("https://www.hubbell.com",
} |
Above one is my code, i am getting error code:-1. I have whitelisted the app and included service account in merchant center also. But still i am getting the same error code. Can you please someone help me out? |
Hi trombocit, Now i am getting the below error. E/Volley: [352] BasicNetwork.performRequest: Unexpected response code 400 for https://wallet.google.com/payments/apis/instantbuy/android/v1/createWalletObjects |
I finally got it woking. I was signing the apk with the debug key and not release key. What I noticed is, if I use .setBarcodeType("codebar") instead of .setBarcodeType("qrCode") I get the same 400 response error. |
My bad, I was able to set a bar code by setting .setBarcodeType("code128") |
We are facing this issue on one of your project, but oddly, only on build from appcenter. I must say that we use the exact same keystore, and so the same sha1 ... I don't get why it doesn't work on appcenter but it does from a build download from playstore, but this error is happenning since we switcher to AAB instead of APKs, and when we bumped to Android 11/12 target. |
Hello, My apologies, this repository is being deprecated. Please refer to the following repositories going forward. If there is anything you would like assistance with, please feel free to submit an issue. |
Hey, Im implementing saving to google pay Loyalty card. Im following tutorial with using the native Android SDK.
After building request and sending by AutoResolverHelper result code is allways 1. In logcat console I have error:
2018-09-25 13:28:58.151 3686-4458/? E/Volley: [51418] BasicNetwork.performRequest: Unexpected response code 400 for https://wallet.google.com/payments/apis/instantbuy/android/v1/createWalletObjects
2018-09-25 13:28:58.156 3686-3699/? E/ServerConnection: Exception sending Volley request
java.util.concurrent.ExecutionException: com.android.volley.ClientError
at com.android.volley.toolbox.RequestFuture.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):4)
at com.android.volley.toolbox.RequestFuture.get(:com.google.android.gms@13280019@13.2.80 (040400-211705629):1)
at arwj.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):34)
at arwj.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):30)
at asph.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):8)
at aspb.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):19)
at asfj.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):5)
at aspa.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):4)
at aspk.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):2)
at asou.a(Unknown Source:2)
at asoy.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):1)
at wwt.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):3)
at cgv.onTransact(:com.google.android.gms@13280019@13.2.80 (040400-211705629):5)
at asou.onTransact(Unknown Source:0)
at android.os.Binder.transact(Binder.java:622)
at djf.onTransact(:com.google.android.gms@13280019@13.2.80 (040400-211705629):3)
at android.os.Binder.execTransact(Binder.java:692)
Caused by: com.android.volley.ClientError
at com.android.volley.toolbox.BasicNetwork.performRequest(:com.google.android.gms@13280019@13.2.80 (040400-211705629):53)
at pwh.performRequest(:com.google.android.gms@13280019@13.2.80 (040400-211705629):14)
at com.android.volley.NetworkDispatcher.a(:com.google.android.gms@13280019@13.2.80 (040400-211705629):6)
at com.android.volley.NetworkDispatcher.run(:com.google.android.gms@13280019@13.2.80 (040400-211705629):2)
The text was updated successfully, but these errors were encountered: