1
我在我的Android應用程序中集成了Android Paypal SDK,這裏我有我的客戶端ID並在我的代碼中使用,當我開始與PayPal「Pay with Card」交易並使用4111 1111 1111 1111和5555 5555 5555 4444但我總是收到錯誤信息。我無法追查這個原因,任何建議?錯誤:PayPal Android SDK中的INTERNAL_SERVICE_ERROR
錯誤日誌:
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);
截圖:
很高興你的工作。 PayPal沙箱中存在太多使用相同信用卡號碼的問題。有許多方法可以從你的沙盒測試帳戶中獲得測試cc數字。 –
請在此填寫卡號和有效期 –