PayPal Express Checkout PHP not getting a response(PayPal Express Checkout PHP 没有得到响应)
问题描述
我目前正在尝试使用 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 没有得到响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PayPal Express Checkout PHP 没有得到响应
基础教程推荐
- HTTP 与 FTP 上传 2021-01-01
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- 使用 PDO 转义列名 2021-01-01
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01
- PHP 守护进程/worker 环境 2022-01-01
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01