1
23
45
67
89
1011
1213
1415
1617
1819
2021
2223
2425
2627
2829
3031
3233
3435
3637
3839
4041
4243
4445
4647
4849
5051
5253
5455
5657
5859
60 | <?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", "ProfileNumber" => "0000000000",
"Amount" => "1.00", //Required Field "Currency" => "USD", //Required Field
"CheckNumber" => "12345", //Required Field "Memo" => "Online Shopping Payment",
"Check" => array( "RoutingNumber" => "111111118", //Required Field "AccountNumber" => "12121214", //Required Field
"NameOnAccount" => "John Public", //Required Field "Address" => array( "Street" => "1234 Main Street", //Required Field
"City" => "Irving", //Required Field "State" => "TX", //Required Field
"Zip" => "99999", //Required Field "Country" => "US"), //Required Field
"Phone_1" => array( "Number" => "214-555-1212", "Type" => "Home"),
"Phone_2" => array( "Number" => "972-555-9875", "Type" => "Cell"),
"Identification"=> array( "IDType" => "1", "State" => "TX",
"Number" => "12345678", "Expiration"=> "12/31/2012",
"DOB" => "12/31/1956", "Address" => array( "Street" => "1234 Main Street",
"City" => "Anytown", "State" => "TX",
"Zip" => "99999", "Country" => "US"))),
"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( "ProcessACH", array("parameters" => $params) );
echo "Date / Time Stamp: ".$run->ProcessACHResult->DateTimeStamp."<br>";
echo "Response Code: ".$run->ProcessACHResult->ResponseCode."<br>";if ($run->ProcessACHResult->ResponseCode == 0) {
echo "Transaction ID: ".$run->ProcessACHResult->TransactionID."<br>"; echo "Accepted: ".$run->ProcessACHResult->IsAccepted."<br>";
if ($run->ProcessACHResult->IsAccepted == "True") { echo "Authorization ID: ".$run->ProcessACHResult->AuthorizationNumber."<br>";
}} else {
echo "Error Message: ".$run->ProcessACHResult->Message."<br>";}
?> |