Hey everyone:
I set up my Zen Cart with Sage Payment/Net1 Today...it works great. I fixed a problem where the order number from Zen was not being sent to Sage (described below); but the email from Zen is also not being sent to Sage...anyone know what the problem is there?
I added this line
$data .= "&T_ordernum=" . urlencode( $_POST['T_ordernum'] );
to this section of text in the includes/modules/payment/net1.php; you have to add it right there, after the line with &T_amt. As I said, the module already includes a line for C_email (but it does not make it to Sage. I will experiment, but I think I have done enough for one day!
/*Encode data to be sent to Net1.
This stuff was grabbed from the earlier creation of
the process_button_string (those little hidden input fields)
All customer data should be encoded for security*/
$data .= "&T_amt=" . urlencode( $_POST['T_amt'] );
$data .= "&T_ordernum=" . urlencode( $_POST['T_ordernum'] );
$data .= "&C_name=" . urlencode( $_POST['C_name'] );
$data .= "&C_address=" . urlencode( $_POST['C_address'] ); $data .= "&C_city=" . urlencode( $_POST['C_city'] );
$data .= "&C_state=" . urlencode( $_POST['C_state'] );
$data .= "&C_zip=" . urlencode( $_POST['C_zip'] );
$data .= "&C_email=" . urlencode( $_POST['C_email'] );
$data .= "&C_cardnumber=" . urlencode( $_POST['C_cardnumber'] );
$data .= "&C_exp=" . urlencode( $_POST['C_exp'] );
$data .= "&T_code=02";
Bookmarks