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
6061
62 | <?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" => "1033475", //Required Field
"ListingName" => "Jane and Jane Doe", "Frequency" => "12", //Required Field
"StartDateTime" => "12/01/2018", //Required Field "EndingDateTime"=> "12/01/2019",
"Amount" => "1.00", //Required Field "CheckNumber" => "1234",
"Currency" => "USD", //Required Field "Memo" => "Membership Fee",
"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( "UpdateACHSchedule", array("parameters" => $params) );
echo "Date / Time Stamp: ".$run->UpdateACHScheduleResult->DateTimeStamp."<br>";
echo "Response Code: ".$run->UpdateACHScheduleResult->ResponseCode."<br>";if ($run->UpdateACHScheduleResult->ResponseCode == 0) {
echo "Transaction ID: ".$run->UpdateACHScheduleResult->TransactionID."<br>"; echo "Billing Cycle: ".$run->SetupACHScheduleResult->BillingCycle."<br>";
echo "Next Billing Date: ".$run->SetupACHScheduleResult->NextBillingDate."<br>";} else {
echo "Error Message: ".$run->UpdateACHScheduleResult->Message."<br>";}
?> |