简体   繁体   中英

Sending shopping cart items to PayPal

I have a database table full of items that were selected to be purchased by a customer, and need to send them to PayPal as an order so they can pay for those items.

My problem is that existing shopping cart solutions require you to either manually enter each existing product into their database online (which is pointless for me, since we have over 1000 products, and over 500 variations of each product), or they require you to have your database table setup a certain way, and I have tried that, with 4carts, including one that I paid a great deal amount of money for, but refuse to offer support for it, and it is abosultely useless.

So, my solution is to roll out my own payment page where i grab the order details (product name, qty, price and freight charges from the database, then send them to PayPal, and from there on, paypal handles the rest.

But I have no idea how I would even begin doing this, and I have studied the PayPal website, and it all seems so confusing and I just don't know where to begin. Are there any working samples floating around that you could please share with me?

I just need to be able to send what's in my database to paypal so the user can pay for those items.

Any help at all is greatly appreciated.

Thank you!

Follow the instructions for Implementing the Simplest Express Checkout Integration .

It is a little long but it explains exactly what you need to do, and isn't subject to the security hole Robert talks about in his comments.

替代文字

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