对于我的移动应用,我使用Android Pay + Stripe作为支付网关。我使用Stripe创建了一个商家帐户,并使用PUBLISHABLE键生成令牌。过去一周,获得令牌以创建费用已经成功。
我的电子钱包环境如下:
<?= Html::submitButton('Submit', ['style' => 'background: url(myimage.png)'])?>
然而,今天,我看到了一些奇怪的例外:
1)
public static final int WALLET_ENVIRONMENT = WalletConstants.ENVIRONMENT_SANDBOX;
2)
BasicNetwork.performRequest: Unexpected response code 500 for https://sandbox.google.com/payments/apis-secure/instantbuy/android/v1/getFullWallet?
3)
Class not found when unmarshalling: com.google.android.gms.wallet.MaskedWallet
10-28 11:50:02.638 906-1616/? E/Parcel: java.lang.ClassNotFoundException: com.google.android.gms.wallet.MaskedWallet
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.wallet.MaskedWallet" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
4)
Class not found when unmarshalling: com.google.android.gms.wallet.shared.BuyFlowConfig
10-28 11:49:57.633 906-922/? E/Parcel: java.lang.ClassNotFoundException: com.google.android.gms.wallet.shared.BuyFlowConfig
答案 0 :(得分:1)
问题现已解决。出于某种奇怪的原因,我将WALLET_ENVIRONMENT更改为以下内容:
public static final int WALLET_ENVIRONMENT = WalletConstants.ENVIRONMENT_TEST;
然后,我跑了一次。然后,我将它改回到SANDBOX模式,它起作用了:
public static final int WALLET_ENVIRONMENT = WalletConstants.ENVIRONMENT_SANDBOX;