无法创建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"}}
答案 0 :(得分:0)