<?php
/**
* Example script demonstration use of skipjackResponseCheck class.
*
* Vinay Yadav (vinayRas)
* vinay@vinayras.com
* http://www.vinayras.com/
*
*/
require('skipjackResponse.php');
/**
* Create an instance of the class
*/
$sk = new skipjackResponseCheck($_POST);
/**
* Get status code sent by skipjack server.
* $statusCode == 1, means transaction approved
*/
$statusCode = $sk->statusCode;
/**
* Get status message
*/
$statusMsg = $sk->getStatus();
print("Return status: [$statusCode] $statusMsg");
?>
|