Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Paypal中缺少订单号_Php_Paypal - Fatal编程技术网

Php Paypal中缺少订单号

Php Paypal中缺少订单号,php,paypal,Php,Paypal,在我的站点中,我使用Paypal将多个项目传递到购物车。价格、产品名称都正确无误。但是订单号没有显示在Paypal中。我已将代码粘贴到下面 <form name=pay_last_form method=post action='https://www.sandbox.paypal.com/cgi-bin/webscr'> <input type=hidden name=cmd value=_cart> <input type=hidden name=upload

在我的站点中,我使用Paypal将多个项目传递到购物车。价格、产品名称都正确无误。但是订单号没有显示在Paypal中。我已将代码粘贴到下面

<form name=pay_last_form method=post action='https://www.sandbox.paypal.com/cgi-bin/webscr'>
<input type=hidden name=cmd value=_cart>
<input type=hidden name=upload value='1'>
<input type=hidden name=rm value='2'>
<input type=hidden name=business value=mymail_id>
<input type=hidden name=item_name_1 value='Deep House 01 - Download Version'>
<input type=hidden name=amount_1 value='14.96'>
<input type=hidden name=item_number_1 value='1'>
<input type=hidden name=shipping value=''>
<input type=hidden name=currency_code value='EUR'>
<input type=hidden name=custom value='17297'>
<input type=hidden name=return value='thanks-payment.php'>
<input type=hidden name=cancel_return value='payment-cancel.php'>
<input type=hidden name=notify_url value='success_payment.php'>
</form>

一旦你确定了你的代码可以工作,最好马上进行最终测试。尝试使用$1交易

尝试发送“项目编号”而不是“项目编号1”。此外,尝试添加一些数字,使其看起来真实


您可以按请求检索它(“项目编号”)

您希望在哪里看到自定义值?这不会显示在支付页面上,因为这是一个传递变量,商户只能看到。当您登录商户帐户时,您应该在交易详细信息中看到它。如果您检查买家帐户中的交易详细信息,您将看不到它。这也会通过IPN发回。这是它应该如何工作。我还刚刚运行了一个测试,它显示了应该显示的位置。如果您想让它显示在付款页面上,您需要使用一个不同的变量,一个专门为买家显示的变量。

只是澄清一下,您是否将订单号作为您的项目号?您具体指的是在哪里没有显示在结帐页面、交易详情等?@PP_MTS_Chad我指的是自定义输入值中的订单号。如果您希望在付款页面上显示信息,请说出用于在Paypal Widget中向买家显示值的变量名,您需要使用item_name_x、item_number_x,或者使用可选变量之一,例如可以与items一起使用的onx_x。