我目前正在尝试使用 angelleye codeigniter 库 (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
卷曲 7.37.0
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() 函数.应该在第 589 行.
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();
}
然后运行另一个测试.如果发生 curl 错误,您应该能够看到它.
Then run another test. If there is a curl error happening you should be able to see it.
这篇关于PayPal Express Checkout PHP 没有得到响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!