PHP Classes

File: example.php.txt

Recommend this page to a friend!
  Classes of Vinay Yadav   skipjackResponseCheck   example.php.txt   Download  
File: example.php.txt
Role: Example script
Content type: text/plain
Description: Example Script
Class: skipjackResponseCheck
Skipjack response reading class
Author: By
Last change:
Date: 21 years ago
Size: 635 bytes
 

Contents

Class file image Download
<?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");
?>