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 没有得到响应
基础教程推荐
- PHP 类:全局变量作为类中的属性 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何替换eregi() 2022-01-01
