我们在 Android 中使用 PayPalAndroidSDK.jar 直接从应用程序进行支付交易。我们已经成功创建了一个企业帐户,并且该应用程序在沙盒中运行良好。
但是当我们将其从Sandbox 更改为 Live 并尝试使用原始的 LIVE US 信用卡进行付款时,它给了我们以下错误:
request failure with http statusCode:401,exception:org.apache.http.client.HttpResponseException: Unauthorized
request failed with server response:{"name":"UNAUTHORIZED_PAYMENT","message":"Unauthorized payment.","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"d658b"}
我们使用以下代码进行支付:
PayPalConfiguration config = new PayPalConfiguration()
.environment(PayPalConfiguration.ENVIRONMENT_PRODUCTION)
.clientId(CONFIG_CLIENT_ID)
.rememberUser(false);
We are using this client id in the app. This is the latest settings which we have in the account under app
如果有人能在这方面帮助我们,那就太好了。
最佳答案
这是一个新的集成吗?
“未授权支付”可能是您没有运行直接信用卡支付 REST API 的权限。
REST DCC 将仅适用于日本的现有商家和新商家。这。您可以选择使用 Website Payments Pro/Payflow Pro 来使用直接信用卡支付
关于android - Paypal UNAUTHORIZED_PAYMENT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48909150/