我试图从订单页面将订单ID传递给PayPal,然后返回到感谢页面,以便我可以将订单标记为已付款,但我遇到了问题。目前我路过这些变量贝宝这样的:通过PayPal将'自定义'值返回
$vars = array(
'cmd' => "_cart",
'upload' => "1",
'business' => "[email protected]",
'item_name_1' => "Test Item",
'amount_1' => "1.00",
'return' => "http://www.website.com/thanks.php",
'custom' => $order_id,
);
header('Location: https://www.paypal.com/cgi-bin/webscr?' . http_build_query($vars));
当他们付款完成后,我重定向,它不会出现的订单ID被送回,但是。这是我给出的网址:
thanks.php?tx=61G92224EW780500P&st=Completed&amt=1.00&cc=USD&cm=57&item_number=
我期望看到一个“定制=”后面是什么地方在此字符串中的顺序号。但它不存在。我做错什么了吗?
您使用IPN来确定付款是否生成,从不返回url – 2013-10-24 18:37:15