Transaction initiated for payment and Got the revert form a transaction and want to display result on page ans save to my DB
if (!($data = curl_exec($ch))) {
return ERROR;
}
curl_close($ch);
unset($ch);
print "\n$data\n";
$data = explode("&",$data);
for($i=0;$i<count($data);$i++) {
$rdata = explode("=",$data[$i]);
$this->responses[$rdata[0]] = $rdata[1];
}
return $this->responses['response'];
}
Result
response=1&responsetext=SUCCESS&authcode=123456&transactionid=2766128623&avsresponse=N&cvvresponse=M&orderid=1123400&type=sale&response_code=100
now i want to display each items on page like Responce = 1 Responce Text = Success
jsonmight help you