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.
我有一个数据库表,其中包含选择由客户购买的商品,需要将它们作为订单发送给PayPal,以便他们可以为这些商品付款。
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.
我的问题是现有的购物车解决方案要求您手动将每个现有产品输入到他们的数据库中(这对我来说毫无意义,因为我们有超过1000种产品,每种产品有500多种变体),或者他们要求你拥有你的数据库表以某种方式设置,并且我已经尝试过,使用4carts,包括我支付了大量金钱,但拒绝提供支持,而且它非常无用。
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.
因此,我的解决方案是推出自己的付款页面,我从中获取订单详细信息(产品名称,数量,价格和运费从数据库,然后发送到PayPal,从那里,paypal处理其余的。
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?
但我不知道我怎么会开始这样做,而且我研究过PayPal网站,这一切看起来都很混乱,我只是不知道从哪里开始。是否有漂浮的工作样品,请与我分享?
I just need to be able to send what's in my database to paypal so the user can pay for those items.
我只需要能够将我的数据库中的内容发送到paypal,这样用户就可以为这些项目付费。
Any help at all is greatly appreciated.
任何帮助都非常感谢。
Thank you!
1 个解决方案
#1
9
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.
它有点长,但它确切地解释了你需要做什么,并且不受罗伯特在评论中谈到的安全漏洞的影响。
#1
9
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.
它有点长,但它确切地解释了你需要做什么,并且不受罗伯特在评论中谈到的安全漏洞的影响。