快速结帐 (NVP) 中的即时付款通知订单描述为空白

发布于 2024-12-07 21:54:57 字数 712 浏览 1 评论 0原文

我已经成功(几乎!)在网站上集成了 Paypal 的快速结账功能。订单预览显示订单描述、价格和数量。付款是在沙箱内进行的,买方帐户将被记入借方,供应商帐户将被记入正确金额的贷方。

系统生成测试即时付款通知 (IPN) 电子邮件,除了电子邮件中的订单描述为空之外,一切看起来都很好。

我的直觉是,这是显而易见的事情,比如没有为标签正确设置值,但我在文档中找不到它是什么。

以下是我为订单项目设置数据的方法:

$nvpstr .= "&L_PAYMENTREQUEST_0_NAME0=". $this->itemName;
$nvpstr .= "&L_PAYMENTREQUEST_0_NUMBER0=". $this->itemNumber;
$nvpstr .= "&L_PAYMENTREQUEST_0_DESC0=". $this->itemDesc;
$nvpstr .= "&L_PAYMENTREQUEST_0_AMT0=". $this->_addVAT( $this->itemAmount );
$nvpstr .= "&L_PAYMENTREQUEST_0_QTY0=". $this->itemQty;

我确实尝试使用看起来已弃用的“L_NAME0”格式,但它不起作用。

同样,这适用于预览屏幕和付款,只是 IPN 电子邮件不会填充订单项目。

感谢您的任何帮助。

I've successfully (almost!) integrated Paypal's express checkout on a site. The order preview shows the order description, price and quantity. Payment is made within the sandbox and the buyer account is debited and the vendor account is credited with the right amount.

The system generates the test Instant Payment Notification (IPN) emails and all looks fine except the order description within the e-mail is blank.

My instinct is that it's something obvious like a value not being set correctly for the label but I can't find what it is in the docs.

Here is how I'm setting the data for the order items:

$nvpstr .= "&L_PAYMENTREQUEST_0_NAME0=". $this->itemName;
$nvpstr .= "&L_PAYMENTREQUEST_0_NUMBER0=". $this->itemNumber;
$nvpstr .= "&L_PAYMENTREQUEST_0_DESC0=". $this->itemDesc;
$nvpstr .= "&L_PAYMENTREQUEST_0_AMT0=". $this->_addVAT( $this->itemAmount );
$nvpstr .= "&L_PAYMENTREQUEST_0_QTY0=". $this->itemQty;

I did try using what looks to be a deprecated format of "L_NAME0", which didn't work.

Again, this works for the previewing screen and the payments, it's just the IPN e-mails which don't populate with the order items.

Thanks for any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

無處可尋 2024-12-14 21:54:57

解决方案:

您需要回到供应商站点后传递信息。该电子邮件是根据 DoExpressCheckoutPayment 调用中发送的信息生成的。

Solution:

You need to pass the information after going back to the vendor's site. The e-mail is generated from the information sent in the DoExpressCheckoutPayment call.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文