简体   繁体   中英

PayPal Express Checkout shipping calculation

I have designed a store using PayPal Express Checkout. They have recently decided that they want separate shipping rates for local and international orders. I am currently pulling all shipping information from PayPal. Is it possible to send the total to PayPal AFTER receiving the buyer's shipping information?

What you want is the PayPal Instant Update / Callback API .
This is a callback from PayPal to your website to prepopulate shipping options on the PayPal website while the buyer is doing the checkout on PayPal.
It allows you to specify the specific shipping cost for the transaction after the SetExpressCheckout API has already been called.

How the Express Checkout flow would work with Instant Update / Callback implemented: 使用即时更新的PayPal Express Checkout流程

See "Setting up the Callback" on https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECInstantUpdateAPI for detailed instructions.
This page also includes an example API call and an example response for the callback; the response your callback file should return.
Let me know if anything is not clear and I'll try to hunt for some example files.

Note: In Live mode, the callback URL on your site must be SSL-secured (HTTPS). In Sandbox you can use both HTTP and HTTPS.

您可以在DoExpressCheckoutPayment请求中发送最高为您在SetExpressCheckout请求中指定的原始付款金额的115%的最终付款金额。

I don't have access to paypal at the moment, but you can setup shipping in the merchant services section of paypal (I get confused as to where it is). If it is not there you can check under My Profile, My selling tools and under shipping in there.

There you should be able to setup shipping through paypal.

If you don't want to do it through paypal, you need to bring the customer back to your webpage where they can confirm the shipping and do the paying there. Sorry for the non answer, hope this leads you the right direction.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM