-2
我正在使用以下api:http://apidocs.mifinity.com/#/doc/2但它不工作?我想打電話給調用mifinity api使用php
我的API密鑰
$data = array(
'key' => "1234567777"
);
$url = 'https://demo.mifinitypay.com/';
$ch = curl_init($url);
$postString = http_build_query($data, '', '&');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
var_dump($response);
不以何種方式工作?你有錯誤嗎?你有沒有檢查你的錯誤日誌? –
它沒有任何返回 –
你檢查了你的錯誤日誌嗎? –