平衡支付集成与PHP Curl



我使用平衡支付转移支付与我的网站,但有问题,我使用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。

谢谢,问候,Ishan S. Jain

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

另外,请注意您是基于旧的API版本(1.0)构建代码的。

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

最新更新