错误:Paypal Android SDK中的INTERNAL_SERVICE_ERROR

时间:2014-03-30 15:40:21

标签: android paypal paypal-sandbox

我在我的Android应用程序中集成了Android Paypal SDK,在这里我有我的客户端ID并在我的代码中使用,当我开始与paypal“Pay with Card”交易并使用4111 1111 1111 1111和5555 5555 5555 4444但是我总是收到错误消息。我无法追查这个的原因,任何建议??

错误日志:

03-30 15:01:17.442    1491-1520/com.example.paypaldemo.app W/E﹕ T SN:14 PayPal-Debug-Id header: 902b48df2f324
03-30 15:01:17.446    1491-1520/com.example.paypaldemo.app E/paypal.sdk﹕ request failure with http statusCode:500,exception:org.apache.http.client.HttpResponseException: Internal Server Error
03-30 15:01:17.454    1491-1520/com.example.paypaldemo.app E/paypal.sdk﹕ request failed with server response:{"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR","debug_id":"902b48df2f324"}
03-30 15:01:17.466    1491-1491/com.example.paypaldemo.app E/PayPalService﹕ INTERNAL_SERVICE_ERROR
03-30 15:01:17.642    1491-1491/com.example.paypaldemo.app W/EGL_genymotion﹕ eglSurfaceAttrib not implemented
03-30 15:01:18.262    1491-1517/com.example.paypaldemo.app W/E﹕ N SN:16 PayPal-Debug-Id header: 46b25b2a17eff
03-30 15:01:32.874      473-487/system_process D/﹕ HostConnection::get() New Host Connection established 0xb910ea88, tid 487
03-30 15:01:33.174      112-280/? W/audio_hw_primary﹕ out_write() limiting sleep time 44149 to 23219

代码:

PayPalPayment payment = new PayPalPayment(new BigDecimal("1.75"), "USD", "hipster jeans",
        PayPalPayment.PAYMENT_INTENT_SALE);

Intent intent = new Intent(this, PaymentActivity.class);

intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);

startActivityForResult(intent, 0);

屏幕截图:enter image description here

1 个答案:

答案 0 :(得分:1)

我只是通过使用Paypal提供的信用卡号码和到期日期解决了这个问题并且有效了!