php - PayPal Express Checkout PHP 没有得到响应

标签 php codeigniter curl paypal

我目前正在尝试使用 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/

相关文章:

PHP:不正确的 SQL 语法错误

php - Windows 上 PHP 的常见安装路径

php - 带有 CI 的原生 cURL

Codeigniter 的重定向未传递变量数据

ubuntu - CURL 返回 (35) OpenSSL SSL_connect : SSL_ERROR_SYSCALL

curl - 如何启动 Mintty 并运行脚本文件?

javascript - 如何访问html文件中的jquery变量

php - 最大 PHP 回显大小

php - 在 CodeIgniter 中绕过 Controller 的方法?

php - 使用Codeigniter框架连接DSN