【问题标题】:Balanced payment integration with PHP Curl与 PHP Curl 的平衡支付集成
【发布时间】:2014-06-23 15:33:54
【问题描述】:

我正在使用平衡支付与我的网站进行转账,但遇到了问题,我在我的编程语言中使用 PHP Curl 代码,但我没有收到任何类型的哦,对我的问题有希望的回应。

我的 Curl 代码如下所示。

$url = "https://api.balancedpayments.com/v1/marketplaces/TEST-MP1K1dZWDLVf3nIfthUpaROF/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,'key=xxxxxxxxxxxxxxxxxxxxxx&amount=5000&description=Some descriptive text for the debit in the dashboard');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);

这个“钥匙”是隐藏的购买安全原因。

如果有人可以解决我的问题,请与我联系,我的电子邮件是 ishansourabhjain@hotmail.com。

感谢和问候, 伊山·S·耆那教

【问题讨论】:

  • 您得到什么回应,您期望发生什么?
  • @Alex 您应该通过电子邮件联系 (-:

标签: php curl balanced-payments


【解决方案1】:

我怀疑您的问题与尝试发布您的密钥而不是以基本身份验证格式提供它有关。

另外,请注意,您是根据旧的 API 版本 (1.0) 构建代码。建议使用 1.1。

为什么不使用现有的用于 PHP 的 Balanced 客户端库? https://github.com/balanced/balanced-php

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2013-07-10
  • 2012-07-23
  • 2015-11-12
  • 2012-10-22
  • 2014-03-10
  • 1970-01-01
  • 2021-06-10
相关资源
最近更新 更多