我正致力于将Paypal支付与我的安卓应用程序集成起来。
这是我的Paypal配置代码:
private static PayPalConfiguration config = new PayPalConfiguration()
.environment(CONFIG_ENVIRONMENT)
.clientId(CONFIG_CLIENT_ID)
// The following are only used in PayPalFuturePaymentActivity.
.merchantName("Integration Demo")
.merchantPrivacyPolicyUri(Uri.parse(""))
.merchantUserAgreementUri(Uri.parse("https://www.paypal.com/webapps/mpp/ua/useragreement-full"))
.rememberUser(true);现在我给PayPalService打电话:
Intent intent = new Intent(this, PayPalService.class);
intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);
startService(intent);但是我得到了以下错误:
01-11 11:49:19.788 31868-8284/com.packagename E/paypal.sdk: request failed with server response:shutdown
01-11 11:49:19.803 31868-31868/com.packagename E/paypal.sdk: SERVER_COMMUNICATION_ERROR我已经通过了这,但到目前为止没有任何帮助。

发布于 2016-01-12 05:52:59
现在看起来已经解决了,新版本2.12.5
这条消息来自官方的代码,Paypal的人证实它现在已经解决了。来自这
我已经将okhttp版本更新为v2.12.5中最新的稳定版本。请您更新到最新版本,并确认您现在是否没有得到此异常。 我很难在任何设备上复制这个问题,所以,需要你的帮助来解决这个问题。我会迅速关注这个问题,很快就会解决这个问题,:+1: 谢谢你的帮助!
我已经用新版本2.12.5进行了测试,问题已经不复存在。
compile('com.paypal.sdk:paypal-android-sdk:2.12.5')https://stackoverflow.com/questions/34715472
复制相似问题