PHP code example of kiboflavin / orbital-batch

1. Go to this page and download the library: Download kiboflavin/orbital-batch library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kiboflavin / orbital-batch example snippets



$cust = array(
	'ccAccountNum'		=> '341134113411347',
	'ccExp'				=> '0120',
	'avsAddress1'		=> '123 Fake Street',
    'avsAddress2'       => 'Hammock District',
	'avsCity'			=> 'Springfield',
	'avsState'			=> 'MA',
	'avsZip'			=> '01101',
    'amount'            => '1000'
);

$request = new \OrbitalBatch\Request(
	'gh-test',
	ORBITAL_USERNAME, 
	ORBITAL_INDTYPE,
	ORBITAL_BIN,
	ORBITAL_MERCHANT_ID,
	ORBITAL_TERMINAL_ID
);

$request->auth_capture($cust);

$xml = $request->createBatch();

file_put_contents($request->fileID. '.xml', $xml);