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
6263
6465
66 | <?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", "ListingName" => "Jane and Jane Doe",
"Frequency" => "12", //Required Field "StartDateTime" => "12/01/2011", //Required Field
"EndingDateTime"=> "12/01/2019", "Amount" => "1.00", //Required Field
"Currency" => "USD", //Required Field "Memo" => "Membership Fee",
"CardPresent" => "True", "ProfileNumber" => "0000000000",
"Card" => array( "CardNumber" => "5454545454545454", //Required Field "ExpirationMonth" => "12", //Required Field
"ExpirationYear"=> "2012", //Required Field "SecurityCode" => "999",
"NameOnAccount" => "John Public", "Address" => array( "Street" => "1234 Main Street",
"City" => "Irving", "State" => "TX",
"Zip" => "99999", "Country" => "US"),
"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( "SetupCardSchedule", array("parameters" => $params) );
echo "Date / Time Stamp: ".$run->SetupCardScheduleResult->DateTimeStamp."<br>";
echo "Response Code: ".$run->SetupCardScheduleResult->ResponseCode."<br>";if ($run->SetupCardScheduleResult->ResponseCode == 0) {
echo "Transaction ID: ".$run->SetupCardScheduleResult->TransactionID."<br>"; echo "Profile ID: ".$run->SetupCardScheduleResult->ProfileNumber."<br>";
echo "Billing Cycle: ".$run->SetupACHScheduleResult->BillingCycle."<br>"; echo "Next Billing Date: ".$run->SetupACHScheduleResult->NextBillingDate."<br>";
echo "Schedule Number: ".$run->SetupACHScheduleResult->ScheduleNumber."<br>";} else {
echo "Error Message: ".$run->SetupCardScheduleResult->Message."<br>";}
?> |