简体   繁体   English

在通知电子邮件中回传PayPal发票号码

[英]Passing PayPal Invoice Number Back In Notification Email

I need to make a modification to our custom cart. 我需要对我们的自定义购物车进行修改。 Basically as it currently stands when we get a payment we use IPN to post back to our site and display the details of the purchase, we then get an email from PayPal with all the details in. 基本上,当我们收到付款时,我们使用IPN将其回发到我们的网站并显示购买的详细信息,然后我们会从PayPal收到一封包含所有详细信息的电子邮件。

I have an excel spreadsheet that then accesses Outlook and prints an Invoice based on this email and adjusts the stock database etc, at this point the order is given an Invoice number. 我有一个Excel电子表格,然后可以访问Outlook并根据此电子邮件打印发票并调整库存数据库等,这时为订单指定了发票编号。

However, I want to make it that the invoice number is given at the checkout stage, now I know you can set the 'invoice' variable as a pass thru variable, however, what I am unable to determine from the online literature is whether or not this 'invoice' value is returned in the the PayPal instant Payment Notification email, so my excel spreadsheet can use it? 但是,我要确保在结帐阶段提供发票编号,现在我知道您可以将“发票”变量设置为直通变量,但是,我无法从在线文献中确定是不会在PayPal即时付款通知电子邮件中返回此“发票”值,所以我的Excel电子表格可以使用它吗?

If the invoice number is not sent in the email, is there any field you know of that is? 如果未在电子邮件中发送发票编号,您是否知道该字段?

All the best and thank you in advance. 祝一切顺利,在此先感谢您。

First, it sounds like you're confusing IPN and PDT. 首先,听起来您好像在混淆IPN和PDT。 They're very similar, but if the data is getting sent to your return URL then that would be PDT. 它们非常相似,但是如果将数据发送到您的返回URL,则将是PDT。 IPN gets POSTed to a separate script outside of your checkout altogether. IPN会一起发布到结帐之外的单独脚本中。

IPN is the recommended method of updating things and sending out emails, etc. because even with Auto-Return enabled there is no guarantee your buyers will make it back to your return URL (when using Payments Standard.) IPN will always be triggered regardless. IPN是更新事物和发送电子邮件等的推荐方法,因为即使启用了自动返回功能,也无法保证您的买家将其返回到您的返回URL(使用“付款标准”时)。无论如何,始终会触发IPN。

So, back to your question, yes, the invoice number will be sent with IPN notifications if you pass it to PayPal with the payment request. 因此,回到您的问题,是的,如果您将带有付款请求的发票号传递给PayPal,则发票号将与IPN通知一起发送。 The parameter is called "invoice". 该参数称为“发票”。 You can see all the available parameters that IPN works with in the PayPal documentation . 您可以在PayPal文档中查看IPN可以使用的所有可用参数。

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

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