简体   繁体   English

PayPal集成到网站

[英]PayPal Integration into Website

I am working on a donations web page. 我正在捐赠网页。 I have created a merchant account with PayPal and have successfully integrated PayPal Checkout into my website. 我已经使用PayPal创建了一个商家帐户,并成功将PayPal Checkout整合到我的网站中。

The only problem is that I want to verify that the user actually made the transaction on PayPal's website. 唯一的问题是我想验证用户是否真的在PayPal的网站上进行了交易。 How can this be done please? 怎么可以这样做呢?

Turn on Paypal IPN. 打开Paypal IPN。 It will post some parameters to a address of your choice where u must handle the POST and reply back. 它会将一些参数发布到您选择的地址,您必须处理POST并回复。 There should be code examples of this on paypal dev site. 在paypal开发网站上应该有这个代码示例。

Ed. 埃德。

When user payment is completed PP POST to YourSite.com/PaypalIPN.. here you must process the POST from PP and reply so that PP knows you have received the POST. 当用户付款完成PP POST到YourSite.com/PaypalIPN ..在这里你必须处理来自PP的POST并回复,以便PP知道你已经收到了POST。 If you don't do this PP will continue to send payment info. 如果您不这样做,PP将继续发送付款信息。

The PP POST contains stuff like order number, transaction id etc.. wich u can use to process the user order. PP POST包含订单号,交易ID等内容。您可以使用它来处理用户订单。

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

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