gpt4 book ai didi

Android Pay 和 Stripe - BasicNetwork.performRequest,解码 MaskedWallet

转载 作者:行者123 更新时间:2023-11-30 01:48:23 26 4
gpt4 key购买 nike

对于我的移动应用程序,我使用 Android Pay + Stripe 作为支付网关。我使用 Stripe 创建了一个商家帐户,并使用 PUBLISHABLE key 生成了一个 token 。在过去的一周中,已成功获取用于创建费用的 token 。

我的钱包环境如下:

public static final int WALLET_ENVIRONMENT = WalletConstants.ENVIRONMENT_SANDBOX;

但是,今天,我看到了奇怪的异常:

1)

BasicNetwork.performRequest: Unexpected response code 500 for https://sandbox.google.com/payments/apis-secure/instantbuy/android/v1/getFullWallet?

2)

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]]

3)

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

4)

E/ServerConnection: Exception sending Volley request
10-28 10:55:01.868 20872-20927/? E/ServerConnection: java.util.concurrent.ExecutionException: com.android.volley.NoConnectionError: com.google.android.gms.http.a: Blocked by rule: temporary_blocked2

最佳答案

问题现已解决。出于某种奇怪的原因,我将 WALLET_ENVIRONMENT 更改为以下内容:

public static final int WALLET_ENVIRONMENT = WalletConstants.ENVIRONMENT_TEST;

然后,我运行了一次。然后,我将它改回 SANDBOX 模式,它起作用了:

public static final int WALLET_ENVIRONMENT = WalletConstants.ENVIRONMENT_SANDBOX;

关于Android Pay 和 Stripe - BasicNetwork.performRequest,解码 MaskedWallet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33399411/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com