Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

set the WalletOptions 'brand' field to ANDROID_PAY #6

Closed
MaTriXy opened this issue Oct 16, 2015 · 13 comments
Closed

set the WalletOptions 'brand' field to ANDROID_PAY #6

MaTriXy opened this issue Oct 16, 2015 · 13 comments

Comments

@MaTriXy
Copy link

MaTriXy commented Oct 16, 2015

Trying to use the Google sample app for Android Pay.
I got the error in logcat:
"To use this API, you must set the WalletOptions 'brand' field to ANDROID_PAY"

10-16 10:32:33.564 26114-355/? E/Volley: [4806] BasicNetwork.performRequest: Unexpected response code 400 for https://wallet.google.com/payments/apis/instantbuy/android/v1/getWalletItems
10-16 10:32:33.568 26114-26667/? W/BaseAppContext: Using Auth Proxy for data requests.
10-16 10:32:33.584 21959-21959/? E/OwServiceUtils: Wallet error code: 51
10-16 10:32:33.584 21959-21959/? E/OwServiceUtils: Wallet error detail: To use this API, you must set the WalletOptions 'brand' field to ANDROID_PAY.

Anyone knows why and can help out?

@samtstern
Copy link
Contributor

I am looking into this now, thank you for the report. I have also noticed it on StackOverflow.

@samtstern
Copy link
Contributor

This is a server issue on our end, we have a fix in place and are hoping to get it out today. Thank you for noticing!

@samtstern
Copy link
Contributor

@MaTriXy are you still seeing this issue? I think it should be fixed by now.

@rahuls786
Copy link

i am still getting

:10.252 1195-2018/com.google.android.gms E/Volley﹕ [157] BasicNetwork.performRequest: Unexpected response code 400 for https://wallet.google.com/payments/apis/instantbuy/android/v1/getWalletItems
10-22 14:07:10.253 1195-1325/com.google.android.gms W/BaseAppContext﹕ Using Auth Proxy for data requests.
10-22 14:07:10.254 11977-11977/com.google.android.gms.ui E/OwServiceUtils﹕ Wallet error code: 51
10-22 14:07:10.254 11977-11977/com.google.android.gms.ui E/OwServiceUtils﹕ Wallet error detail: Signing key fingerprints {FE:00:E2:90:99:6B:C8:3D:0B:9B:F7:6E:8F:76:35:A6:4F:4D:5D:BB} do not match our records for this app.

@MaTriXy
Copy link
Author

MaTriXy commented Oct 22, 2015

@samtstern will check and update back.

@MaTriXy
Copy link
Author

MaTriXy commented Oct 23, 2015

I get this Error now:

10-23 12:21:22.786 24512-30485/? E/Volley: [41510] BasicNetwork.performRequest: Unexpected response code 403 for https://wallet.google.com/payments/apis/instantbuy/android/v1/getWalletItems
10-23 12:21:22.799 27832-27832/? E/OwServiceUtils: Wallet error code: 12

But at least now i can see a msg saying that I need a US Address for that account.

@rahuls786
Copy link

@samtstern could you please look into above issue

@Freesoul1982
Copy link

@rahuls786 are you sure that you using the right keystore? debug vs release?

@Freesoul1982
Copy link

@samtstern @MaTriXy Now everything working alright , no error messages.

@mithilwcities
Copy link

I am not getting 'Buy with Android Pay' button instead it shows same old 'Buy with Google' (Google Wallet) button, even after increasing the Google Pay Services version.

@samtstern
Copy link
Contributor

@mithilwcities make sure your WalletFragmentStyle looks like this:

WalletFragmentStyle walletFragmentStyle = new WalletFragmentStyle()
    .setBuyButtonText(WalletFragmentStyle.BuyButtonText.BUY_WITH)
    .setBuyButtonAppearance(WalletFragmentStyle.BuyButtonAppearance.ANDROID_PAY_DARK)
    .setBuyButtonWidth(WalletFragmentStyle.Dimension.MATCH_PARENT);

I have an update coming to this repo in a few days that will make that change, among other updates.

Also I am going to close this issue, as the original problem was resolved.

@mithilwcities
Copy link

On pressing on Android Pay button, I am getting following issue: "To make purchases using Android Pay,please set your cards in the android pay app". And the Android Pay App Downloaded from Google Play Store doesn't allow to add Credit Cards with sandbox credentials. Then how to test my app.

@samtstern
Copy link
Contributor

You will need to add a real card to Android Pay, and then if you test your app using the sandbox you will not actually be charged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants