Handling server-to-server notifications
Resources:
Main fields to check in the notification:
https://support.hipay.com/hc/en-us/articles/115005171029
Refused notifications:
https://support.hipay.com/hc/en-us/articles/360002652879-HiPay-Enterprise-How-to-consider-a-payment-refused-or-a-refund-refused-
To store the notification in a file
//Example array.
$notification = $_POST;
//Serialize the array.
$serialized = serialize($notitication);
//Save the serialized array to a text file.
file_put_contents('txt1234.txt', $serialized);
//Retrieve the serialized string.
$fileContents = file_get_contents('txt1234.txt');
//Unserialize the string back into an array.
$arrayUnserialized = unserialize($fileContents);
//End result.
var_dump($arrayUnserialized);
?>
To store the notification in a database