Api=>(POST)
https://www.paynow.co.zw/interface/initiatetransaction
request_param=>
id:""
reference:ref_1234
amount:10.00
returnurl:http://www.google.com/search?q=returnurl
status:Message
hash:""
additionalinfo:A test ticket transaction
resulturl:http://www.google.com/search?q=resulturl
Currently I am checking via postman directly
but for implementation I am using php laravel framework
Also for make Hash I have used this way on editor
<?php
$values = [
"id"=>1201,
"reference"=>"TEST REF",
"amount"=>99.99,
"additionalinfo"=>"A test ticket transaction",
"returnurl"=>"http://www.google.com/search?q=returnurl",
"resulturl"=>"http://www.google.com/search?q=resulturl",
"status"=>"Message"
];
$IntegrationKey = '3e9fed89-60e1-4ce5-ab6e-6b1eb2d4f977';
// Call the function to generate the hash
$hashed = CreateHash($values, $IntegrationKey);
function CreateHash($values, $IntegrationKey) {
$string = "";
foreach($values as $key=>$value) {
if( strtoupper($key) != "HASH" ){
$string .= $value;
}
}
$string .= $IntegrationKey;
$hash = hash("sha512", $string);
return strtoupper($hash);
}
echo $hashed;
?>
I have to implement via api