$_identityToken = '';
// Provided Token, The Identity Token should be stored in an encrypted format and read into the application.
// This can be stored either in a database or on the disk, but must always be protected and encrypted.
// If the IdentityToken is compromised you must notify us immmediately so we can issue a new IdentityToken
// This is main means of authentication to the platform, essentially this is your password.
require_once ABSPATH . '/ConfigFiles/ReadConfigValues.php';
/*
 *
 * Create new web service client class using provided token
 * Profile ID and service ID are not required, but increase speed of script
 * You may also pass the session token to increase speed again, but that token
 * will need to be generated and saved elsewhere.
 *
 */
$client = new HTTPClient($_identityToken, $_baseURL);
$_serviceInformation = $client->getServiceInformation();
if (count($_serviceInformation['BankcardServices'] == 1) && $_serviceInformation['BankcardServices']['BankcardService']) {
    $_bankcardServices = $_serviceInformation['BankcardServices'];
    include_once dirname(__FILE__) . '/TransactionProcessingScripts/BankcardTransactionProcessing.php';
}
//if (count($_serviceInformation['ElectronicCheckingServices'] == 1) && $_serviceInformation['ElectronicCheckingService']['ElectronicCheckingService'] )
//	$_electronicCheckingServices = $_serviceInformation->ElectronicCheckingServices;
//	include_once dirname(__FILE__).'../TransactionProcessingScripts/ElectronicCheckingTransactionProcessing.php';
//}
//if (count($_serviceInformation['StoredValueServices'] == 1) && $_serviceInformation['StoredValueServices']['StoredValueService'] ){
//	$_storedvalueServices = $_serviceInformation['StoredValueServices'];
//	include_once dirname(__FILE__).'../TransactionProcessingScripts/StoredValueTransactionProcessing.php';
//}
?>

 * Computer Software--Licensing clause at NASA FAR supplement
 * 16-52.227-86; or their equivalent.
 *
 * Information in this software is subject to change without notice
 * and does not represent a commitment on the part of IP Commerce.
 *
 * Sample Code is for reference Only and is intended to be used for educational purposes. It's the responsibility of
 * the software company to properly integrate into their solution code that best meets their production needs.
 */
require_once ABSPATH . '/WebServiceProxies/HTTPClient.php';
$client = new HTTPClient($_identityToken, $_baseURL);
/*
 * Retrieve Service Information
 */
if ($_serviceId == null) {
    $response = $client->getServiceInformation();
    $_serviceInformation = $response;
    /*
     * If multiple services exist print them all to the browser
     */
    /*
     * Note you may have multiple ServiceId's in your array of
     * Get Service Information.  Assign your Service Id appropriately
     * Note:  Store the Service Id after this step.  This will remain
     * static for your application unless you add additional services.  This step
     * only needs to occur during first time application setup an or if additional
     * added at a later date.
     *
     */
    // Print Service Information
    if (count($_serviceInformation['BankcardServices'] == 1) && $_serviceInformation['BankcardServices']['BankcardService']) {