简体   繁体   English

每个交易使用不同的PayPal IPN URL

[英]Using a different PayPal IPN URL per transaction

I have seen and know how to use IPN for paypal payments but I am having a small issue. 我已经看到并知道如何使用IPN进行贝宝付款,但是我遇到了一个小问题。 With IPN you need to enter an IPN address to your PayPal File so it knows you got sent the payment (Instant Activation of Product). 使用IPN,您需要在PayPal文件中输入IPN地址,以便知道您已收到付款(产品立即激活)。 If I have multiple sites, I can't do this as It only allows one. 如果我有多个站点,则不能这样做,因为它只允许一个站点。

I have seen the WHMCS system manage to do this using Website Payments Standard (Does not require any IPN Settings) where the user's invoice is marked as paid after the payment is sent. 我已经看到WHMCS系统使用“网站付款标准”(不需要任何IPN设置)设法做到这一点,其中在发送付款后将用户的发票标记为“已付款”。 The user does not need to be redirected to another page and as a seller, the only info you need to put in is your paypal email for things to start working. 用户无需重定向到另一个页面,作为卖家,您需要输入的唯一信息是您的贝宝电子邮件,以便开始工作。

Does anyone know how this works and where to learn this? 有谁知道它是如何工作的以及在哪里学习?

Thank you for your help 谢谢您的帮助

You can specify a per-transaction IPN URL by passing in notify_url along with the other data in the form. 您可以通过传递notify_url以及表单中的其他数据来指定每个交易的IPN URL。
Eg <input type="hidden" name="notify_url" value="http://...."> 例如<input type="hidden" name="notify_url" value="http://....">

This will override whatever you have set up within your PayPal Profile. 这将覆盖您在PayPal个人资料中设置的所有内容。

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

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