我目前正在尝试使用 angelleye codeigniter 库 ( https://github.com/angelleye/paypal-codeigniter ) 使 PayPal 快速结账工作。我没有收到来自 PayPal 的回复或任何错误。由于没有响应,我得到的唯一错误是 ACK 的未定义索引。没有任何 curl 错误,PayPal 响应返回一个空数组。
有没有办法检查失败的地方?
运行时间:
Ubuntu 12.04.5
curl 7.37.0
PHP 5.5.32
Apache 2.4.12
OpenSSL 1.0.1
最佳答案
在/application/libraries/paypal/Paypal_pro.php 中找到 CURLRequest() 函数。应该在第 589 行。
在函数的这一行之后:
$Response = curl_exec($curl);
添加以下内容,添加以下内容:
if($Response === FALSE) {
echo "cURL Error: " . curl_error($curl);
exit();
}
然后运行另一个测试。如果发生 curl 错误,您应该能够看到它。
关于php - PayPal Express Checkout PHP 没有得到响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35429393/