Express Checkout(NVP)中的“即时付款通知"订单描述为空白 [英] Instant Payment Notification order description blank in Express Checkout (NVP)

查看:100
本文介绍了Express Checkout(NVP)中的“即时付款通知"订单描述为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功(几乎!)将Paypal的快速​​结帐功能集成到一个站点上.订单预览显示了订单说明,价格和数量.在沙盒中付款,买家帐户被记入借方,卖方帐户被记入正确的金额.

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.

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

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;

我确实尝试使用过时的"L_NAME0"格式,但没有用.

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

同样,这适用于预览屏幕和付款,只是IPN电子邮件中未填充订单项.

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.

感谢您的帮助.

推荐答案

解决方案:

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

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.

这篇关于Express Checkout(NVP)中的“即时付款通知"订单描述为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆