[英]paypal useraction=commit doesnt give a pay button. PHP
我在PHP中有以下代码
$postData = "USER=xxxxxx"
. "&PWD=xxxxxxxx"
. "&SIGNATURE=xxxxxxx"
. "&METHOD=SetExpressCheckout"
. "&VERSION=93"
. "&EMAIL=" . $_POST['email']
. "&PAYMENTREQUEST_0_SHIPTOPHONENUM=" . $_POST['phone']
. "&PAYMENTREQUEST_0_AMT=" . $price
. "&PAYMENTREQUEST_0_ITEMAMT=" . $price
. "&PAYMENTREQUEST_0_PAYMENTACTION=SALE"
. "&PAYMENTREQUEST_0_DESC=" . $plan['fullname']
. "&L_PAYMENTREQUEST_0_NAME0=" .$plan['fullname']
. "&L_PAYMENTREQUEST_0_AMT0=$price"
. "&L_PAYMENTREQUEST_0_QTY0=1"
. "&RETURNURL=http://localhost/bemo/casperreg"
. "&CANCELURL=http://bemoacademicconsulting.com/casperprep-internal";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // this line makes it work under https
curl_setopt($ch, CURLOPT_URL, "https://api-3t.paypal.com/nvp");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
// Ready the postData to send
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
// Send the data to Paypal and assign the repsonse
$resp = curl_exec($ch);
parse_str($resp,$arr);
redirect::to("https://www.paypal.com/checkoutnow?token=" . $arr['TOKEN'] . "&useraction=commit");
现在,从技术上讲,这里的所有内容都可以使用,除了以下事实:即使它说useraction = commit我也没有立即付款按钮。 谁能帮我吗?
另外,作为奖励问题,即使我将电话号码传递给了贝宝,也没有在贝宝页面上看到它。 这是我能做的吗?
谢谢! 努尔
快速结帐的正确重定向地址应为
https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=[token number]
资料来源: 开发人员指南
至于你的奖金问题
1.尝试对编号为xxx-xxx-xxxx的区域进行屏蔽
2.检查商家资料中的电话号码是否设置为必填
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.