快速结帐 (NVP) 中的即时付款通知订单描述为空白
我已经成功(几乎!)在网站上集成了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案:
您需要回到供应商站点后传递信息。该电子邮件是根据 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.