Skipjack API Class

Jan 24, 2008
A friend of mine, Steven Vondruska, wrote a Skipjack class that he kindly let me use for a project of my own. He wrote the class a while back and we've both since become better programmers, so I decided to update the code a bit before using it.

Overview

This Skipjack class will allow you to easily connect to the Skipjack API, submit credit card information, and determine if the transaction has been approved or not by Skipjack.

Download

Added Jan 24, 2008

Usage

require_once 'skipjack.php';
sj = new Skipjack();
$sj->setDeveloper(true); // use the development server address, remove this line to use the live server

$sj->addFields(array(
        'OrderNumber' => '5',
        'ItemNumber' => 'i5',
        'ItemDescription' => 'Test Item',
        'ItemCost' => '5.50',
        'Quantity' => '1',
        'Taxable' => '0',
        'AccountNumber' => '4445999922225',
        'Month' => '12',
        'Year' => '2010',
        'TransactionAmount' => '200.00'
    ));

if($sj->process() && $sj->isApproved()) {
    echo "Transaction approved!";
} else {
    echo "Transaction declined!\n";
    echo $sj->getErrors();
}

Please review the file itself for other useful methods written in the class.
0 comments

More Posts

Other Places

Recent Photos

P3160401 P3160399 P3160397 P3160391 P3160390 P3160387