} else { printServiceInformation($_serviceInformation['BankcardServices']['BankcardService']); $_serviceId['singleService'] = array('ServiceId' => $_serviceInformation['BankcardServices']['BankcardService']['ServiceId'], 'ServiceName' => translateSvcName($_serviceInformation['BankcardServices']['BankcardService']['ServiceId'])); } } if (count($_serviceInformation['ElectronicCheckingServices'] == 1) && $_serviceInformation['ElectronicCheckingServices']['ElectronicCheckingService'] != NULL) { echo '<div style="text-align:center; border-width: thin; border-color: black; border-style:solid; "><h1>Service Information - Electronic Checking Services</h1></div>'; if (is_array($response['ElectronicCheckingServices']['ElectronicCheckingService'])) { foreach ($response['ElectronicCheckingServices']['ElectronicCheckingService'] as $ElectronickCheckingService) { printServiceInformation($ElectronickCheckingService); $_serviceId[] = array('ServiceId' => $ElectronickCheckingService->ServiceId, 'ServiceName' => translateSvcName($ElectronickCheckingService->ServiceId)); } } else { printServiceInformation($response['ElectronicCheckingServices']['ElectronicCheckingService']); $_serviceId['singleService'] = array('ServiceId' => $response['ElectronicCheckingServices']['ElectronicCheckingService']['ServiceId'], 'ServiceName' => translateSvcName($_serviceInformation['ElectronicCheckingServices']['ElectronicCheckingService']['ServiceId'])); } } if (count($_serviceInformation['StoredValueServices'] == 1) && $_serviceInformation['StoredValueServices']['StoredValueService']) { echo '<div style="text-align:center; border-width: thin; border-color: black; border-style:solid; "><h1>Service Information - Stored Value Services</h1></div>'; if (is_array($_serviceInformation['StoredValueServices']['StoredValueService'])) { foreach ($_serviceInformation['StoredValueServices']['StoredValueService'] as $StoredValueServices) { printServiceInformation($StoredValueServices); $_serviceId[] = array('ServiceId' => $response['StoredValueServices']['StoredValueService']['ServiceId'], 'ServiceName' => translateSvcName($_serviceInformation['StoredValueServices']['StoredValueService']['ServiceId'])); } } else { printServiceInformation($_serviceInformation['StoredValueServices']['StoredValueService']); $_serviceId['singleService'] = array('ServiceId' => $_serviceInformation['StoredValueServices']['StoredValueService']['ServiceId'], 'ServiceName' => translateSvcName($_serviceInformation['StoredValueServices']['StoredValueService']['ServiceId'])); break; } } }
function printServiceInformation($service) { $_serviceName = translateSvcName($service['ServiceId']); echo '<h2><b>ServiceName:</b><font color="#800080"> ' . $_serviceName . '</font></h2>'; echo '<b>ServiceId:</b><font color="#800080"> ' . $service['ServiceId'] . '<br /></font><br />'; echo '<b>AlternativeMerchantData Supported:</b><font color="#800080"> ' . $service['AlternativeMerchantData'] . '<br /></font><br />'; echo '<b>AutoBatch Supported:</b><font color="#800080"> ' . $service['AutoBatch'] . '<br /></font><br />'; echo '<h3><b>Transaction Operations Supported:</h3>'; echo '<ul><li><b>Verify:</b><font color="#800080"> ' . $service['Operations']['Verify'] . '</font><br />'; echo '<li><b>QueryAccount:</b><font color="#800080"> ' . $service['Operations']['QueryAccount'] . '</font><br />'; echo '<li><b>AuthorizeAndCapture:</b><font color="#800080"> ' . $service['Operations']['AuthAndCapture'] . '</font><br />'; echo '<li><b>Authorize:</b><font color="#800080"> ' . $service['Operations']['Authorize'] . '</font><br />'; echo '<li><b>ReturnById:</b><font color="#800080"> ' . $service['Operations']['ReturnById'] . '</font><br />'; echo '<li><b>Undo:</b><font color="#800080"> ' . $service['Operations']['Undo'] . '</font><br />'; echo '<li><b>Capture:</b><font color="#800080"> ' . $service['Operations']['Capture'] . '</font><br />'; echo '<li><b>CaptureSelective:</b><font color="#800080"> ' . $service['Operations']['CaptureSelective'] . '</font><br />'; echo '<li><b>CaptureAll:</b><font color="#800080"> ' . $service['Operations']['CaptureAll'] . '</ul></font><br />'; echo '<h3><b>AVSData Fields Required:</h3>'; echo '<ul><li><b>CardholderName:</b><font color="#800080"> ' . $service['AVSData']['CardholderName'] . '</font><br />'; echo '<li><b>Street:</b><font color="#800080"> ' . $service['AVSData']['Street'] . '</font><br />'; echo '<li><b>City:</b><font color="#800080"> ' . $service['AVSData']['City'] . '</font><br />'; echo '<li><b>StateProvince:</b><font color="#800080"> ' . $service['AVSData']['StateProvince'] . '</font><br />'; echo '<li><b>PostalCode:</b><font color="#800080"> ' . $service['AVSData']['PostalCode'] . '</font><br />'; echo '<li><b>Country:</b><font color="#800080"> ' . $service['AVSData']['Country'] . '</font><br />'; echo '<li><b>Phone:</b><font color="#800080"> ' . $service['AVSData']['Phone'] . '</font><br /></ul>'; echo '<h3><b>Tenders Supported:</h3>'; echo '<ul><li><b>Credit:</b><font color="#800080"> ' . $service['Tenders']['Credit'] . '</font><br />'; echo '<li><b>PINDebit:</b><font color="#800080"> ' . $service['Tenders']['PINDebit'] . '</font><br />'; echo '<li><b>PINLessDebit:</b><font color="#800080"> ' . $service['Tenders']['PINLessDebit'] . '</font><br />'; echo '<li><b>PINDebitReturnSupportType:</b><font color="#800080"> ' . $service['Tenders']['PINDebitReturnSupportType'] . '</font><br />'; echo '<li><b>PINDebitUndoTenderDataRequired:</b><font color="#800080"> ' . $service['Tenders']['PINDebitUndoTenderDataRequired'] . '</font><br />'; echo '<li><b>CreditAuthorizeSupport:</b><font color="#800080"> ' . $service['Tenders']['CreditAuthorizeSupport'] . '</font><br />'; echo '<li><b>QueryRejectedSupport:</b><font color="#800080"> ' . $service['Tenders']['QueryRejectedSupport'] . '</font><br />'; echo '<li><b>PinDebitUndoSupport:</b><font color="#800080"> ' . $service['Tenders']['PinDebitUndoSupport'] . '</font><br />'; echo '<li><b>BatchAssignmentSupport:</b><font color="#800080"> ' . $service['Tenders']['BatchAssignmentSupport'] . '</font><br />'; echo '<li><b>CreditReturnSupportType:</b><font color="#800080"> ' . $service['Tenders']['CreditReturnSupportType'] . '</font><br />'; echo '<li><b>TrackDataSupport:</b><font color="#800080"> ' . $service['Tenders']['TrackDataSupport'] . '</font><br />'; echo '<li><b>CredentialsRequired:</b><font color="#800080"> ' . $service['Tenders']['CredentialsRequired'] . '</font><br />'; echo '<li><b>CreditReversalSupportType:</b><font color="#800080"> ' . $service['Tenders']['CreditReversalSupportType'] . '</font><br />'; echo '<li><b>PartialApprovalSupportType:</b><font color="#800080"> ' . $service['Tenders']['PartialApprovalSupportType'] . '</font><br /></ul>'; if (!"ElectronicCheckingService") { echo '<h3><b>AVS Data that is accepted:</h3>'; echo '<ul><li><b>CardholderName:</b><font color="#800080"> ' . $service['AVSData']['CardholderName'] . '</font><br />'; echo '<li><b>Street:</b><font color="#800080"> ' . $service['AVSData']['Street'] . '</font><br />'; echo '<li><b>City:</b><font color="#800080"> ' . $service['AVSData']['City'] . '</font><br />'; echo '<li><b>StateProvince:</b><font color="#800080"> ' . $service['AVSData']['StateProvince'] . '</font><br />'; echo '<li><b>PostalCode:</b><font color="#800080"> ' . $service['AVSData']['PostalCode'] . '</font><br />'; echo '<li><b>Country:</b><font color="#800080"> ' . $service['AVSData']['Country'] . '</font><br />'; echo '<li><b>Phone:</b><font color="#800080"> ' . $service['AVSData']['Phone'] . '</ul></font><br />'; echo '<h3><b>Service Support Details:</h3>'; echo '<ul><li><b>AutoBatch:</b><font color="#800080"> ' . $service['AutoBatch'] . '</font><br />'; //echo '-CutoffTime:</b><font color="#800080"> '.$service['CutoffTime'].'</font><br />'; echo '<li><b>Managed Billing:</b><font color="#800080"> ' . $service['ManagedBilling'] . '</font><br />'; echo '<li><b>Maximum Batch Items:</b><font color="#800080"> ' . $service['MaximumBatchItems'] . '</font><br />'; echo '<li><b>Maximum Line Items:</b><font color="#800080"> ' . $service['MaximumLineItems'] . '</font><br />'; echo '<li><b>Multiple Partial Capture:</b><font color="#800080"> ' . $service['MultiplePartialCapture'] . '</font><br />'; echo '<li><b>PurchaseCardLevel Supported:</b><font color="#800080"> ' . $service['PurchaseCardLevel'] . '</font><br />'; echo '<li><b>Tenders: <br/ >'; echo '<ul><li><b>Credit: </b><font color="#800080"> ' . $service['Tenders']['Credit'] . '</font><br />'; echo '<li><b>PINDebit:</b><font color="#800080"> ' . $service['Tenders']['PINDebit'] . '</font><br />'; echo '<li><b>PINDebitReturnSupportType:</b><font color="#800080"> ' . $service['Tenders']['PINDebitReturnSupportType'] . '</ul></ul></font><br />'; } }