Location: PHPKode > scripts > skipjackResponseCheck > skipjackresponsecheck/example.php.txt
<?php
   /**
    * Example script demonstration use of skipjackResponseCheck class.
    * 
    * Vinay Yadav (vinayRas)
    * hide@address.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");
?>
Return current item: skipjackResponseCheck