我在我的Android应用程序中集成了Android Paypal SDK,在这里我有我的客户端ID并在我的代码中使用,当我开始与“Pay with Paypal”交易时,我收到错误消息“付款信息无效,请更正并再次提交“;
有什么建议吗?
日志:
03-30 16:58:50.106 1491-1771/com.example.paypaldemo.app E/paypal.sdk﹕ request failure with http statusCode:400,exception:org.apache.http.client.HttpResponseException: Bad Request
03-30 16:58:50.106 1491-1771/com.example.paypaldemo.app E/paypal.sdk﹕ request failed with server response:{"name":"VALIDATION_ERROR","details":[{"field":"redirect_urls","issue":"This field required when payment_method is 'paypal'"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR","debug_id":"587f8072ed4d6"}
03-30 16:58:50.130 1491-1491/com.example.paypaldemo.app E/PayPalService﹕ VALIDATION_ERROR
代码:
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);
屏幕截图:
答案 0 :(得分:1)
@Bot - 商家帐户(与应用客户端ID关联的帐户)不能与买方使用的帐户相同。看起来可能就是这种情况。
请参阅https://github.com/paypal/PayPal-iOS-SDK/issues/110
尝试使用其他帐户作为买家。