PayPal显示空车

时间:2016-04-20 22:57:31

标签: php paypal

我有两个不同的付款页面。其中一个工作得很好,并将购物车发布到PayPal,就像它应该的那样,另一个显示空车无论如何。我查看了我发送的url字符串,这些是唯一不同的参数:

使用:

&item_name_1=Add+Seats+-+Keynote+Manager
&item_number_1=Add+to+License
&amount_1=68
&quantity_1=1
&notify_url=http%3A%2F%2Frevolutiondesign.biz%2FIPNBroker.php%3Fkey%3DAZHJ0T1U05V1W1XY8G1C3C3XP3IMF2N2PP%26extendYears%3D0%26newSeats%3D1%26addPortable%3D%26newFeatures%3D
&custom=upgrade
&key=AZHJ0T1U05V1W1XY8G1C3C3XP3IMF2N2PP
&extendYears=0
&newSeats=1
&addPortable=
&addFeatures=
&qtyAddFeatures=0
&costAddFeatures=0
&qtyAddSeats=1
&costAddSeats=68
&qtyPortable=
&costPortable=
&qtyExtend=0
&costExtend=0
&v=63400

&item_name_1=Add+Cloud+Seats
&item_number_1=Add+Cloud+Seats
&amount_1=94
&quantity_1=1
&notify_url=http%3A%2F%2Frevolutiondesign.biz%2FIPNBroker.php%3FcustomerID%3Dba3d3c75-5e18-42b7-948e-3e34cccc1d9e%26extendPeriod%3Dmonths%26qtyExtend%3D1%26qtyAddSeats%3D1
&custom=cloudUpgrade
&cstID=ba3d3c75-5e18-42b7-948e-3e34cccc1d9e
&costAddSeats=97
&costExtend=7
&v=GREAT+Design+Group
&extend=1
&extendPeriod=months
&add=1

有没有人能看到会导致第二个不起作用的差异?

1 个答案:

答案 0 :(得分:0)

通过一些消除过程,我终于找到了问题。问题在于存在名为“添加”的变量。我使用它来获取用户想要添加的许可证数量,但我没有意识到PayPal also has that as a variable for cart transactions。我把那个帖子数据拉成了一个php变量,然后取消了帖子,所以它没有传递给PayPal,现在就可以了。我也可以重新命名来自我的购买页面的post变量,我敢打赌它也会起作用。