* @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 * * @package SafeEFT */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); require_once 'SageEFT/Api.php'; require_once 'example.php'; $sage = new SageEFT\Api('', '', '2318'); // Test Data $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);