简体   繁体   English

Paypal 集成无IPN

[英]Paypal integration without IPN

I want to integrate paypal buy now button and get feedback from paypal in a school project, but i don't want to use IPN because the computer running the website will not be accessible from outside.我想在学校项目中集成 paypal 立即购买按钮并从 paypal 获得反馈,但我不想使用 IPN,因为无法从外部访问运行该网站的计算机。

Are there any options for doing this?有什么选择吗?

You don't have to enable IPN to have buy now buttons on Paypal, it's completely optional.您不必启用 IPN 即可在 Paypal 上拥有“立即购买”按钮,这是完全可选的。 The buy now button will still take you to the correct page on Paypal so the purchase can be made.现在购买按钮仍会将您带到 Paypal 上的正确页面,因此可以进行购买。 IPN only allows you to get feedback from Paypal when this happens. IPN 仅允许您在发生这种情况时从 Paypal 获得反馈。


Well, I need to get some information when a successful payment is made.好吧,我需要在成功付款后获取一些信息。

Paypal can notify you by mail when something has happened. Paypal 可以在有事情发生时通过邮件通知您。

Apologies for the bump.为颠簸道歉。 Just adding this in case anyone else needs it:只需添加它以防其他人需要它:

Use "rm=2".使用“rm=2”。 (input type hidden, name=rm, value=2) (输入类型隐藏,名称=rm,值=2)

https://merchant.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables https://merchant.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables

Return method.退货方式。 The FORM METHOD used to send data to the URL specified by the return variable after payment completion.支付完成后,用于向返回变量指定的 URL 发送数据的 FORM METHOD。 Allowable values:允许值:
0 – all shopping cart transactions use the GET method 0 – 所有购物车交易都使用 GET 方法
1 – the payer's browser is redirected to the return URL by the GET method, and no transaction variables are sent 1 – 付款人的浏览器通过GET方式重定向到返回URL,不发送交易变量
2 – the payer's browser is redirected to the return URL by the POST method, and all transaction variables are also posted 2 – 付款人的浏览器通过POST方式重定向到返回URL,所有的交易变量也都贴出来了

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

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