PP REST API收取税费和运费而不发送地址?

时间:2014-07-08 19:01:07

标签: paypal e-commerce paypal-rest-sdk

使用REST API,如果我将用户发送给PayPal 以收集送货信息(当然还有付费),我如何收取税费或运费?

做一些研究几乎看起来似乎不可能,但我无法想象是这样的。如果我必须自己收集运输信息,大大减少了使用PP的价值。

1 个答案:

答案 0 :(得分:0)

With the REST API, just like the Classic API, a PayPal payment is executed in three steps:

1) Send initial information to PayPal to get a token. Redirect customer to PayPal. Customer authorizes payment. 2) Get payment details (like the shipping address) 3) Confirm payment.

So, in this case, after getting the shipping address, you display an order review page to the customer where it will generate the shipping options and tax amount to the customer. They then have to select a "Confirm Order" button which will then finalize the charge to PayPal with the new tax/shipping and final amount.

In API terms, the final step is done with the /execute command. This accepts the payer_id you received in step 2, and a transactions array that supports a new amount object.

The amount object includes a details object that includes shipping, tax, handling fee, insurance, etc.

Include the details the customer decides on your review page and PayPal will charge the updated amount to the customer's funding source of choice.