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 | <?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", "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( "CreateCardProfile", array("parameters" => $params) ); echo "Date / Time Stamp: ".$run->CreateCardProfileResult->DateTimeStamp."<br>"; echo "Response Code: ".$run->CreateCardProfileResult->ResponseCode."<br>";if ($run->CreateCardProfileResult->ResponseCode == 0) { echo "Transaction ID: ".$run->CreateCardProfileResult->TransactionID."<br>"; echo "Profile ID: ".$run->CreateCardProfileResult->ProfileNumber."<br>"; } else { echo "Error Message: ".$run->CreateCardProfileResult->Message."<br>"; }?> |