$user ) { header("location: access-denied.php"); exit(); } if($myrow['pw'] == "999" ) { header("location: passwordchange.php"); exit(); } ?>

TRANSACTION REFUND FORM

Transaction id:
Account Number:
Last 4 digits of Card:
Refund Amount:

$auth_net_login_id, "x_version" => "3.1", "x_delim_char" => "|", "x_delim_data" => "TRUE", "x_url" => "FALSE", "x_type" => "CREDIT", "x_method" => "CC", "x_tran_key" => $auth_net_tran_key, "x_relay_response" => "FALSE", "x_description" => "Anna Jaques-Customer Service Portal REFUND", # information collected through the form: "x_trans_id" => $voidid, ); $authnet_values['x_card_num'] = $_POST['card_num']; $authnet_values['x_amount'] = $_POST['refamt']; echo "card_num post is ".$authnet_values['x_card_num']; // form submission successfully validated, submit request to authorize.net and exit $fields = ""; foreach( $authnet_values as $key => $value ) $fields .= "$key=" . urlencode( $value ) . "&"; // * * * * * #$auth_net_url = "https://certification.authorize.net/gateway/transact.dll"; # Uncomment the line ABOVE for test accounts or BELOW for live merchant accounts #$auth_net_url = "https://secure.authorize.net/gateway/transact.dll"; # October 1, 2007 # Current API Login ID: # Current Transaction Key: $auth_net_login_id = "3qRc33EL"; $auth_net_tran_key = "22Jbjxb55S7QM36G"; echo "card_num post is ".$authnet_values['x_card_num']; $ch = curl_init("https://secure.authorize.net/gateway/transact.dll"); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1) curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim( $fields, "& " )); // use HTTP POST to send form data curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this line if you get no gateway response. ### $resp = curl_exec($ch); //execute post and get results curl_close ($ch); // * * * * * $text = $resp; $answer = explode("|", $resp); echo "response is ".$resp; if ( $answer[0] == "1" ) { $tranidcomp = $tranid; $tranid = $answer[6]; ?> Transaction Update Receipt

Transaction has been updated

The transaction has been refunded to the users Credit Card. Your lock box file will
show a negative transaction as a result of the refund.

THANK YOU!

Return to Menu

Transaction Update Receipt

Transaction has NOT been updated. Transaction could not be found in settled transactions.

THANK YOU!

Return to Menu

Unauthorized Access