简体   繁体   中英

PHP Paypal standard integration

I'm in UK and setting up a PHP website selling physical products. I will initially use Paypal standard integration. I have a bespoke cart already setup and I get customer's address on my website so that I can include a shipping cost to the order before transferring the cart data over to Paypal. Getting the shipping address on my site is ok but how do I then transfer that to Paypal without the user needing to re-enter it or changing it afterwards?

The ideal ecommerce solution is to display the PayPal Checkout "shortcut" button as early as possible in your flow, before a shipping address is even entered (perhaps on a final "View Cart" or configured product page), and implement an onShippingChange listener to patch the order as needed.

Here is documentation:

This way, the buyer does not have to manually type in an address if it's already stored in PayPal, resulting in quicker checkouts and increased conversion (more sales due to less friction in the checkout process)

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