Merhaba herkese kolay gelsin,

Hazırlamış olduğum bir script için centili mobil ödeme sistemini entegre etmek istiyorum.

Elinde örnek kod olan daha önce yapmış olan veya bilgisi olan kişilerden;
Ücreti dahilinde veya ücretsiz yardımcı olabilecek varsa yardımcı olabilirseniz sevinirim.

Teşekkürler

documantasyon https://dev.centili.com/docs/mpesa-integration
json ile bu verileri post etmem gerektiği yazıyor ama aşağıdaki kodu yazmama rağmen dönen json değeri hatalı oluyor.
kullandığım json kodları.
<?php
$url = 'https://api.centili.com/api/payment/1_4/transaction';
$ch = curl_init($url);
$jsonData = array(
'apikey' => 'b055ff3609b22fa0e5d3ea0d49asdasd',
'price' => '15.00',
'country' => 'tr',
'msisdn' => '00905544647061'
);
$jsonDataEncoded = json_encode($jsonData);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Host: api.centili.com:443'));
$result = curl_exec($ch);
?>

hata kodu:
{"status":"SERVER_ERROR","errorMessage":"Server failed to process request","transactionId":null,"clientId":null,"api Key":null,"chargeURL":null,"wap":false,"price":nul l,"countryCode":null,"operatorCode":null,"operator Type":null,"msisdn":null,"mcc":null,"mnc":null,"ac tion":null,"sessionStatus":null,"urlRedirect":null ,"pinPattern":null,"premiumInstructions":null,"han dshakeInstructions":null,"shortCode":null,"mtShort Code":null,"smsBody":null,"message":null,"simtchaI mageUrl":null,"simtchaAnswers":null}