PayPal Express Checkout PHP没有得到回应 [英] PayPal Express Checkout PHP not getting a response
问题描述
我目前正在尝试使用angelleye codeigniter库进行PayPal快速结帐工作( https:// github) .com / angelleye / paypal-codeigniter )。我没有收到回复或PayPal的任何错误。我得到的唯一错误是ACK的未定义索引,由于没有响应。没有任何curl错误,PayPal响应返回一个空数组。
I'm currently trying to get PayPal express checkout working using the angelleye codeigniter library (https://github.com/angelleye/paypal-codeigniter). I'm not getting a response or any errors from PayPal. The only error I am getting is an undefined index of ACK due to there not being a response. There are not any curl errors and the PayPal response comes back with an empty array.
有没有办法检查这是失败?
Is there a way of checking where this is failing?
运行时:
Ubuntu 12.04.5
Ubuntu 12.04.5
curl 7.37.0
curl 7.37.0
PHP 5.5.32
PHP 5.5.32
Apache 2.4.12
Apache 2.4.12
OpenSSL 1.0.1
OpenSSL 1.0.1
推荐答案
在/application/libraries/paypal/Paypal_pro.php中找到CURLRequest
In /application/libraries/paypal/Paypal_pro.php find the CURLRequest() function. Should be at line 589.
在此函数中的此行后面:
After this line in the function:
$Response = curl_exec($curl);
添加以下内容,添加以下内容:
Add the following, add the following:
if($Response === FALSE) {
echo "cURL Error: " . curl_error($curl);
exit();
}
然后运行另一个测试。如果发生卷曲错误,您应该能够看到它。
Then run another test. If there is a curl error happening you should be able to see it.
这篇关于PayPal Express Checkout PHP没有得到回应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!