无法创建付款计划协议

时间:2019-04-08 14:25:04

标签: php codeigniter paypal paypal-sandbox paypal-subscriptions

无法创建PayPal付款协议。得到错误响应。

{"name":"MALFORMED_REQUEST","message":"Incoming JSON request does not map to API request","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#MALFORMED_REQUEST","debug_id":"2c640b4ae1908"}

发送JSON请求:

{"name":"Base Agreement","description":"Basic Agreement","start_date":"2019-04-09T00:00:00Z","plan":{"id":"P-0XM25908D436124367U2FLSI"},"payer":{"payment_method":"credit_card","funding_instruments":[{"payment_card":{"type":"amex","number":"372336613695525","expire_month":"9","expire_year":"2028","cvv2":"5681","first_name":"Buyer","last_name":" ","billing_country":"US","billing_address":"8484848484"}}]},"shipping_address":{"line1":"38 Street, aa","city":"New York","state":"New York","postal_code":"10011","country_code":"US"}}

1 个答案:

答案 0 :(得分:0)

您已将付款方式设置为credit_card。根据{{​​3}}的文档,这不适用于结算协议。

enter image description here

如果您想使用直接信用卡设置协议,我认为此时您需要使用Braintree。他们不久前杀死了REST信用卡。