简体   繁体   English

Paypal付款与PHP集成

[英]Paypal Payment Integration with PHP

I have been searching for Paypal Payment integration code with PHP. 我一直在寻找PHP的Paypal Payment集成代码。

There are too many documents about PayPal Payment API, and I got confused which I have to use. 关于PayPal Payment API的文档太多,我感到困惑,必须使用。

I hope you can help me what PayPal Code that I can use. 希望您能帮助我使用什么贝宝代码。

Here is the point for my website payment. 这是我的网站付款的重点。

  • PHP website PHP网站
  • A user will type amount of fund that they want to put on the website. 用户将输入他们想放在网站上的资金数额。
  • A user clicks submit button and it will redirect to Paypal Page (The user can log in with his or her Paypal account) 用户单击“提交”按钮,它将重定向到“贝宝页面”(用户可以使用其贝宝帐户登录)
  • After the user successfully pay the fund through Paypal, it redirects back to website. 用户成功通过Paypal付款后,它会重定向回网站。

If you know a website or article to figure out this process, please put a comment with the address. 如果您知道可以解决此问题的网站或文章,请在地址旁发表评论。

Thank you! 谢谢!

You probably want to use their Adaptive Payments APi. 您可能要使用他们的自适应支付APi。 Their site has all the documentation you should need. 他们的站点上有您需要的所有文档。

If it's a donation site you can use paypal button factory to get a button and add to your site and done. 如果是捐赠网站,则可以使用贝宝按钮工厂获取按钮并将其添加到您的网站并完成。 Else go to this site and select digital goods option. 否则,请转到该站点并选择数字商品选项。 https://www.paypal-labs.com/integrationwizard/ This gives you readymade code :) Best part is payment is made on your site. https://www.paypal-labs.com/integrationwizard/这为您提供了现成的代码:)最好的部分是在您的网站上付款。 No redirects :) 没有重定向:)

只是为了扩展我以前的答案,解决方案是1.index.php-付款表格,2.ipn.php-响应Paypal,发送电子邮件并写入数据库的引擎和3.reconcile.php-后端允许收款人查看交易的工具

I have been working on a similar proposition. 我一直在研究类似的主张。 I have created a simple php/html page that takes an amount, an invoice number and some payer details (name,email and phone). 我创建了一个简单的php / html页面,其中包含金额,发票编号和一些付款人详细信息(姓名,电子邮件和电话)。 This passes to paypal, processes a payment and then returns. 这将传递给贝宝,处理付款,然后返回。 Emails are sent to the sender and receiver of the payment and the payee has a "reconciliation" listing of all payments received. 电子邮件被发送到付款的发送者和接收者,并且收款人具有“对帐”列表,列出所有收到的付款。 Have a look at ingram.org.au and follow the links to PayMyTradie.. The concept is based on Tradesmen (Electricians, plumbers, etc) who have websites, but, because they dont sell a product, are pretty much excluded from a "shopping cart" payment process. 请访问ingram.org.au,并点击指向PayMyTradie的链接。该概念基于拥有网站的商人(电工,水管工等),但由于他们不销售产品,因此被排除在“购物车”付款过程。 They are excluded no longer and the concept is taking off!! 他们不再被排除在外,而且这个概念正在起飞!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM