1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 | <?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", "TransactionID" => "00000000-0000-0000-0000-000000000000", //Required Field "CreditAmount" => "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( "RefundCardTransaction", array("parameters" => $params) ); echo "Date / Time Stamp: ".$run->RefundCardTransactionResult->DateTimeStamp."<br>";echo "Response Code: ".$run->RefundCardTransactionResult->ResponseCode."<br>"; if ($run->RefundCardTransactionResult->ResponseCode == 0) { echo "Transaction ID: ".$run->RefundCardTransactionResult->TransactionID."<br>"; } else { echo "Error Message: ".$run->RefundCardTransactionResult->Message."<br>"; }?> |