1
23
45
67
89
1011
1213
1415
1617
1819
2021
2223
2425
2627
2829
30 | <?php
$client = new SoapClient("http://svc.paperlesstrans.com:8888/?wsdl");
$params =( array( "req" => array(
"Token" => array( "TerminalID" => "00000000-0000-0000-0000-000000000000", "TerminalKey" => "000000000"),
"TestMode" => "True", "TransactionID" => "00000000-0000-0000-0000-000000000000", //Required Field
"CustomFields" => array( "Field_1" => "Order 96317", "Field_2" => "Customer A987654",
"Field_3" => "Rewards A123456", "Field_4" => "",
"Field_5" => "", "Field_6" => "",
"Field_7" => "", "Field_8" => "",
"Field_9" => "", "Field_10" => ""))));
$run = $client->__call( "VoidACHTransaction", array("parameters" => $params) );
echo "Date / Time Stamp: ".$run->VoidACHTransactionResult->DateTimeStamp."<br>";
echo "Response Code: ".$run->VoidACHTransactionResult->ResponseCode."<br>";if ($run->VoidACHTransactionResult->ResponseCode == 0) {
echo "Transaction ID: ".$run->VoidACHTransactionResult->TransactionID."<br>";} else {
echo "Error Message: ".$run->VoidACHTransactionResult->Message."<br>";}
?> |