无法创建付款计划协议

问题描述 投票:0回答:1

无法创建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"}}
php codeigniter paypal paypal-sandbox paypal-subscriptions
1个回答
0
投票

您已将payment_method设置为credit_card。根据payments.billing-agreements的文档,这不适用于结算协议。

enter image description here

如果你想用直接信用卡设置协议,我认为你现在需要使用Braintree。他们前一段时间杀了REST信用卡。

© www.soinside.com 2019 - 2024. All rights reserved.