$testData = array('routing' => '490000018', 'account' => '24413815', 'type' => 'Checking', 'first_name' => 'John', 'last_name' => 'Doe', 'address' => '123 Someplace Ave', 'city' => 'Myrtle Beach', 'state' => 'SC', 'zip' => '29579', 'ip' => '66.210.223.130');
// How to list endpoints from wsdl
$endpoints = Example::getEndpoints($sage);
var_dump($endpoints);
// How to get terminal settings
$terminalSettings = Example::getTerminalSettings($sage);
var_dump($terminalSettings);
// How to get data packet template
$dataPacket = Example::getPacketTemplate($sage);
var_dump($dataPacket, $dataPacket->asXML());
// How to create transaction data packet
$transDataPacket = Example::createTransactionPacket($testData, $sage);
var_dump($transDataPacket, $transDataPacket->asXML());
// How to verify data packet for development debug purposes
$results = Example::validateDataPacket($transDataPacket, $sage);
var_dump($results);
// How to process single check with checking info
$result = Example::processSingleCheck($transDataPacket, $sage);
var_dump($result);
// How to tokenize account info
$result = Example::getToken($testData, $sage);
var_dump($result['TOKEN']);
// How to create transaction data packet with token
$transDataPacketWithToken = Example::createTransactionPacketWithToken($result['TOKEN'], $testData, $sage);
var_dump($transDataPacketWithToken, $transDataPacketWithToken->asXML());
// How to verify data packet with token for development debug purposes
$results = Example::validateDataPacket($transDataPacketWithToken, $sage);
var_dump($results);
// How to process single check with token
$result = Example::processSingleCheckWithToken($transDataPacketWithToken, $sage);
var_dump($result);