1
我使用paypal rest api付款資源更新付款金額和項目信息;我只是想改變物品的價格和稅收;和運費;但返回MALFORMED_REQUEST;讓我喝醉...paypal rest api更新付款項目
的request_data是:
{
"op": "replace",
"path": "/transactions/0/item_list/items/0",
"value": {
"name": "hello",
"quantity": "2",
"price": "100",
"currency": "USD",
"tax": "12"
}
},
{
"op": "replace",
"path": "/transactions/0/amount",
"value": {
"currency": "USD",
"total": "224",
"details": {
"shipping": "12",
"subtotal": "200",
"tax": "12"
}
}
}
,並返回: { 「名」: 「MALFORMED_REQUEST」, 「消息」: 「MALFORMED_REQUEST」,「information_link 「:」 https://developer.paypal.com/docs/api/#MALFORMED_REQUEST」, 「debug_id」: 「78c05f9b4f21」}
我想確保:
1,可以使用PayPal更新支付的項目信息 2,是路徑「/ transactions/0/item_list/items/0」right
非常感謝!