php 寻找贝宝支付教程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5593136/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Looking for paypal payments tutorial
提问by oshirowanen
I am looking for a tutorial which will show me how to accept paypal payments as I am not having much luck with the documentation.
我正在寻找一个教程,它将向我展示如何接受贝宝付款,因为我对文档不太走运。
In the tutorial, I just need to understand how to capture a unique identifier when the payment has been initiated, and then use the unique identifier to update the database record when payment confirms the payment via ipn.
在教程中,我只需要了解如何在发起支付时捕获唯一标识符,然后在支付通过 ipn 确认支付时使用唯一标识符更新数据库记录。
Does such a tutorial exist?
有这样的教程吗?
Basically, I already have the payments working i.e. a user can make a payment and payment can send a notification to the ipn script, but I can't tell which payment paypal has accepted.
基本上,我已经有了付款,即用户可以付款,付款可以向 ipn 脚本发送通知,但我不知道贝宝接受了哪种付款。
采纳答案by Andrew
There guide is pretty well written and covers all of this:
那里的指南写得很好,涵盖了所有这些:
https://cms.paypal.com/cms_content/en_US/files/developer/PP_OrderMgmt_IntegrationGuide.pdf
https://cms.paypal.com/cms_content/en_US/files/developer/PP_OrderMgmt_IntegrationGuide.pdf
回答by Achinth Gurkhi
PayPal has multiple ways to accept payment. Here is the site to PayPal developer site where you will find all the options: https://www.x.com/community/ppx/dev-tools
贝宝有多种接受付款的方式。这是 PayPal 开发人员站点的站点,您可以在其中找到所有选项:https: //www.x.com/community/ppx/dev-tools
回答by user337620
Here is a good tutorial on how to integrate your shopping cart with PayPal Website Payments Standard.
这是一个关于如何将您的购物车与 PayPal 网站支付标准集成的很好的教程。
The PayPalIPN class provided by the toolkit I developed handles the entire IPN confirmation under the hood. You only need to get the data and update the order in the database. Optionally, you can also notify the customer with your own customized invoice or other information.
我开发的工具包提供的 PayPalIPN 类在后台处理整个 IPN 确认。您只需要获取数据并更新数据库中的订单。或者,您还可以使用您自己的定制发票或其他信息通知客户。