无法将paypal交易与订单联系起来

时间:2014-08-11 20:49:32

标签: php paypal express-checkout

我无法在paypal卖家或买家帐户下查看订单详情。在下面找到带解释的屏幕截图

买家正在购买包裹。订单详细信息显示在左侧。 enter image description here

成功购买后,卖家登录到他的paypal帐户,他无法找到订单详情。在下面的页面中,我可以看到金额,但不是购物车的详细信息。 enter image description here

我使用快速结账进行付款,我将订单详细信息存储在以下变量中并提交给setexpresscheckout。

$order_line .= "&L_PAYMENTREQUEST_0_NAME0=".$packname;
$order_line .= "&L_PAYMENTREQUEST_0_DESC0=".$order_item_desc;
$order_line .= "&L_PAYMENTREQUEST_0_AMT0=".$packagePrice;
$order_line .= "&L_PAYMENTREQUEST_0_NUMBER0=".$paymentid;
$order_line .= "&L_PAYMENTREQUEST_0_QTY0=1";

$order_line .= "&PAYMENTREQUEST_0_ITEMAMT=".$packagePrice;
$order_line .= "&PAYMENTREQUEST_0_AMT=".$packagePrice;
$order_line .= "&PAYMENTREQUEST_0_CURRENCYCODE=".$currencyID;

我错过了什么吗?如何查看订单详细信息,以便将每笔付款链接到相应的订单。

1 个答案:

答案 0 :(得分:0)

我正在回答我自己的问题。要在paypal事务页面中显示订单详细信息,我需要在doexpresscheckout之前设置以下变量。

$order_line .= "&L_PAYMENTREQUEST_0_NAME0=".$packname;
$order_line .= "&L_PAYMENTREQUEST_0_DESC0=".$order_item_desc;
$order_line .= "&L_PAYMENTREQUEST_0_AMT0=".$packagePrice;
$order_line .= "&L_PAYMENTREQUEST_0_NUMBER0=".$paymentid;
$order_line .= "&L_PAYMENTREQUEST_0_QTY0=1";

$order_line .= "&PAYMENTREQUEST_0_ITEMAMT=".$packagePrice;
$order_line .= "&PAYMENTREQUEST_0_AMT=".$packagePrice;
$order_line .= "&PAYMENTREQUEST_0_CURRENCYCODE=".$currencyID;

以前我只在setexpresscheckout之前加载这些变量,这就是它在登录页面左侧显示的原因。在doexpresscheckout之前设置相同之后,我能够在交易页面中看到订单详细信息。