简体   繁体   English

Paypal CreateAndSendInvoice和IPN侦听器(PHP)

[英]Paypal CreateAndSendInvoice and IPN listener (PHP)

Maybe I'm approaching this wrong, but I'm using the Angell EYE Paypal library to create and send an invoice, which works fine, but now I'm stuck on setting up an IPN listener to note when the invoice is paid. 也许我正在解决这个错误,但是我使用的是Angell EYE Paypal库来创建和发送发票,效果很好,但是现在我不得不设置IPN侦听器以记下发票的付款时间。

I'm wanting to avoid specifying an IPN listener URL in the account's settings (already in use and don't want to tamper with it), and would much rather just specify the URL as you would do with 'notify_url' for forms with standard payments. 我想避免在帐户设置中指定IPN侦听器URL(已在使用并且不想对其进行篡改),而是更愿意像对标准表单使用“ notify_url”那样指定URL付款。

Is this possible with CreateAndSendInvoice? CreateAndSendInvoice是否可能? I've considered just using GetInvoiceDetails on a cron job instead and check the invoice status that way, but would prefer the IPN route 我考虑过只在cron作业上使用GetInvoiceDetails,并以这种方式检查发票状态,但是我更喜欢IPN路由

Invoicing API does not support " notify_url " to be set "on-the-fly", so you would either rely on the account settings (the fixed IPN URL), or your own cron job of GetInvoiceDetails API requests, to get the invoice status. 发票API不支持“即时”设置“ notify_url ”,因此您将依靠帐户设置(固定IPN URL)或自己的GetInvoiceDetails API请求的cron作业来获取发票状态。

While on the other hand, most of the payment method APIs / standard forms support the notify_url in the request payload (overriding the account settings), you may switch the approach to use dynamic listener URLs in there, and keep the base url in the account setting for invoicing status and other event-triggered post backs. 另一方面,大多数付款方式API /标准格式都支持请求有效负载中的notify_url (覆盖帐户设置),但是您可以切换使用动态侦听器URL的方法,并将基本URL保留在帐户中设置发票状态和其他事件触发的回发。

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

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