1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 3233 | <?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", "AuthorizationNumber" => "158175", //Required Field "CaptureAmount" => "1.00", //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( "SettleCardAuthorization", array("parameters" => $params) ); echo "Date / Time Stamp: ".$run->SettleCardAuthorizationResult->DateTimeStamp."<br>";echo "Response Code: ".$run->SettleCardAuthorizationResult->ResponseCode."<br>"; if ($run->SettleCardAuthorizationResult->ResponseCode == 0) { echo "Transaction ID: ".$run->SettleCardAuthorizationResult->TransactionID."<br>"; echo "Accepted: ".$run->SettleCardAuthorizationResult->IsAccepted."<br>"; echo "Authorization Number: ".$run->SettleCardAuthorizationResult->AuthorizationNumber."<br>"; } else { echo "Error Message: ".$run->SettleCardAuthorizationResult->Message."<br>"; }?> |