1.检查应用程序的URL是否正确。
2.确认您的服务器是否配置正确。
3.检查您的代码是否正确配置了bKash API集成。
代码示例(使用PHP)
// set post fields
$post = [
'grant_type' => 'client_credentials',
'app_key' => '
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://checkout-sandbox.bka.sh/token/grant'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$headers = [ 'Content-Type:application/x-www-form-urlencoded', 'Accept:application/json' ];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if(curl_errno($ch)) { echo 'Error:' . curl_error($ch); }
curl_close($ch);
echo $result;
请注意,您需要将'