Tag: express checkout

如何在使用PayPal restAPI执行付款之前更改运费金额

我尝试将基于PayPal经典API的旧快速结账流程迁移到新的RestAPI,但在新流程中出现了一个问题: 如何在创建付款后使用PayPal restAPI执行付款之前更改运费? 创建付款后请求: { “intent”: “sale”, “payer”: { “payment_method”: “paypal” }, “transactions”: [ { “amount”: { “currency”: “AUD”, “total”: “100”, “details”: { “shipping”: “10”, “subtotal”: “75”, “tax”: “15” } }, “description”: “Transaction description.”, “item_list”: { “items”: [ { “quantity”: “5”, “name”: “Item Name”, “price”: “15”, “currency”: “AUD”, “sku”: “sku” } ] } } ], […]