【问题标题】:integrate paypal payments advanced with curl in php在 php 中将 paypal 付款与 curl 集成
【发布时间】:2012-10-22 14:08:56
【问题描述】:

我需要在网站中集成高级的贝宝付款。我已经在 manager.paypal.com 上配置了所需的设置。

现在我正在使用 curl 发出安全的 http 请求。但是 curl_exec 不返回任何东西。 这是我的代码。我已经确认所有变量都有正确的值。

$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $pf_host_addr);
curl_setopt($ch, CURLOPT_RETURNTRANSFER , TRUE);
curl_setopt($ch,CURLOPT_POST,TRUE);
curl_setopt($ch,CURLOPT_POSTFIELDS, $postdata);
$resp=curl_exec($ch);

if(!$resp)
{
    return "<p>Failed</p>";
}

我的输出失败了。

【问题讨论】:

  • 你不是在 GoDaddy 上吗?
  • 没关系。根据this,GoDaddy 上的传出连接不再需要代理服务器。

标签: php curl paypal


【解决方案1】:
猜你喜欢
  • 2011-03-07
  • 2016-05-23
  • 2020-07-01
  • 2016-12-12
  • 2016-10-30
  • 2012-03-10
  • 2013-05-29
  • 2018-08-17
  • 2014-07-30
相关资源
最近更新 更多