设置 transaction_subject PayPal IPN
有谁知道如何在 PayPal 返回的 IPN 中设置 transaction_subject 。
目前,它返回的内容与我的自定义字段相同,尽管 PayPal 文档的说明如下:
“用于您自己的跟踪目的的传递变量,买家看不到。 默认值 – 没有变量传递回给您。 “
我需要它与自定义字段不同,因为交易主题显示在买家收到的电子邮件中,这意味着他们正在看到自定义字段的内容。
谢谢
Does anyone know how to set the transaction_subject in the return IPN from PayPal.
At the moment it is returning with the same content as my custom field even though the PayPal doc's say the following:
"Pass-through variable for your own tracking purposes, which buyers do not see.
Default – No variable is passed back to you. "
I need this to be different from the custom field because the transaction_subject is showing in the email that the buyer gets, which means they are seeing the contents of the custom field.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
PayPal 开发人员似乎 X.commerce 不知道
transaction_subject
变量的用途或如何设置 它。甚至 PayPal 的示例 IPN 消息(表靠近底部) 没有提供有关该变量的注释。最后,PayPal 的 IPN 和PDT 变量 和付款标准 HTML 变量参考 不列出它。在解析我们的 IPN 时,
transaction_subject
始终包含custom
传递变量的值,但我不知道这两个值都会显示给买家。在 HTML 表单中使用 NVP 设置
transaction_subject
对其值没有影响。请联系商家技术支持,因为向买家显示的“传递”变量是一个错误。
It seems the PayPal developers on X.commerce do not know the purpose of the
transaction_subject
variable or how to set it. Even PayPal's sample IPN message (table near bottom) provides no notes about the variable. Finally, PayPal's IPN & PDT Variables and Payments Standard HTML Variable Reference do not list it.In parsing our IPNs,
transaction_subject
always contains the value of thecustom
pass-through variable, but I am unaware that either are shown to the buyer.Setting
transaction_subject
using NVP within the HTML form has no effect on its value.Contact merchant technical support because a "pass-through" variable displaying to the buyer is a bug.
我看到 transaction_subject 设置为 item_name 或 item_number 的值,无法判断是哪一个,因为我将这两个值设置为相同的值。我没有看到它设置为“自定义”值,该值具有不同的值(实际上是传出的 Hosted_button_id)。这与
订阅
按钮相关。I am seeing the transaction_subject set to the value of either item_name or item_number, can't tell which, as I am setting both those to the same value. I'm not seeing it set to the value of 'custom', which has a different value (in fact the outgoing hosted_button_id). This is in association with
Subscribe
buttons.我正在使用 /js/paypal-button.min.js?形式方法。如果我设置
data-custom="{mycustomvar:3}"
IPN 结果显示 "transaction_subject":"{mycustomvar:3}"
I am using the /js/paypal-button.min.js? form method. if I set
data-custom="{mycustomvar:3}"
the IPN result shows "transaction_subject":"{mycustomvar:3}"