PHP:启动 PayPal 结帐的简单方法?
我有功能齐全的购物车解决方案。我想要的只是我实际传递产品名称、总数、退货地址和我的贝宝地址的代码,以便它可以将我引导到购物车。有人能引导我走向正确的方向吗?
PayPal 有上百万个不同的版本。我了解到我需要的是“paypal 网站付款”。有人可以证实这一点吗?
I have completely functional cart solution. All I want is the code where I actually pass the name of the products, the total, the return address and my paypal address so that it can direct me to a shopping cart. Can anyone steer me in the right direction?
PayPal has a million different versions. What I've come to learn is that the one I need is called "paypal website payments". Can someone confirm this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以参考以下源代码: https://github.com/osCommerce/oscommerce2/blob/master/catalog/ext/modules/ payment/paypal/express.php
查看 PayPal 商家解决方案的比较:https://www.paypal.com/gr/cgi-bin/webscr ?cmd=_profile-比较
You can use as a reference the following source code: https://github.com/osCommerce/oscommerce2/blob/master/catalog/ext/modules/payment/paypal/express.php
Check out this comparison of PayPal merchant solutions: https://www.paypal.com/gr/cgi-bin/webscr?cmd=_profile-comparison
是的,网站付款标准是要走的路。
基本上,您创建一个表单,其中包含一些准备好的隐藏字段(例如金额等),然后提交它。您甚至可以使用 JavaScript 提交此信息,这样您的客户就可以直接访问 PayPal 来完成交易。
例如:
您可以在此处找到有关其他可用参数的文档:https:// www.x.com/sites/default/files/pp_website paymentsstandard_integrationguide.pdf
Yes, the Website Payments Standard is the way to go.
Basically, you create a form that has a few hidden fields ready to go (such as amount and what not) and then submit it. You could even submit this with JavaScript, so it takes your customer right to PayPal to complete the transaction.
As an example:
You can find documentation on the additional parameters available here: https://www.x.com/sites/default/files/pp_websitepaymentsstandard_integrationguide.pdf