Hello,
I am running the Innovative Gateway on my Zencart ver.1.3.9. It is all working with one problem, I am trying to add the cvv2 code so that my customers can input it in the gateway, but, innovative customer support is saying that the cvv2 code is NOT coming over to them.
First is there a way for me to process a transaction and view the results with or without it passing to innovative, and second does anyone know how I should have the code written so that innovative gets the cvv2 code.
Here is my code so far.
For me this is from line 30 to 69
function GetGatewayResult($fulltotal, $ordernumber,
$ccname, $baddress, $bcity,
$bstate, $bzip, $bcountry,
$bphone, $email, $trantype,
$username, $password, $ccnumber, $month, $year, $ccidentifier1)
{
$data = "target_app=WebCharge_v5.06&";
$data .= "fulltotal=$fulltotal&";
$data .= "ordernumber=$ordernumber&";
$data .= "ccname=$ccname&";
$data .= "baddress=$baddress&";
$data .= "bcity=$bcity&";
$data .= "bstate=$bstate&";
$data .= "bzip=$bzip&";
$data .= "bcountry=$bcountry&";
$data .= "bphone=$bphone&";
$data .= "email=$email&";
$data .= "trantype=$trantype&";
$data .= "response_mode=simple&";
$data .= "username=$username&";
$data .= "pw=$password&";
$data .= "ccnumber=$ccnumber&";
$data .= "month=$month&";
$data .= "year=$year&";
$data .= "ccidentifier1=$ccidentifier1&";
$data .= "connection_method=POST&";
$data .= "delimited_fmt_field_delimiter==&";
$data .= "delimited_fmt_include_fields=true&";
$data .= "delimited_fmt_value_delimiter=|&";
$data .= "delimitedresponse=Y&";
$data .= "include_extra_field_in_response=N&";
$data .= "last_used_response_num=5&";
$data .= "response_fmt=delimited&";
$data .= "upg_auth=zxcvlkjh&";
$data .= "merch_ip=$REMOTE_ADDR&";
$data .= "upg_version=version&";
if ($username == 'gatewaytest') $data .= "test_override_errors=y&"; // We are testing
$data .= "yes=Y";
Then farther down line 132 to 152
$selection = array('id' => $this->code,
'module' => $this->title,
'fields' => array(array('title' => MODULE_PAYMENT_INNOVATIVE_TEXT_CREDIT_CARD_OWNER,
'field' => zen_draw_input_field('innovative_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])),
array('title' => MODULE_PAYMENT_INNOVATIVE_TEXT_CREDIT_CARD_NUMBER,
'field' => zen_draw_input_field('innovative_cc_number')),
array('title' => 'CCV code',
'field' => zen_draw_input_field('innovative_ccidentifier1')),
array('title' => MODULE_PAYMENT_INNOVATIVE_TEXT_CREDIT_CARD_EXPIRES,
'field' => zen_draw_pull_down_menu('innovative_cc_expires_month', $expires_month) . ' ' . zen_draw_pull_down_menu('innovative_cc_expires_year', $expires_year))));
return $selection;
}
function pre_confirmation_check() {
global $_POST;
include(DIR_WS_CLASSES . 'cc_validation.php');
$cc_validation = new cc_validation();
$result = $cc_validation->validate($_POST['innovative_cc_number'], $_POST['innovative_cc_expires_month'], $_POST['innovative_cc_expires_year']);
Please help, BTW I am NOT a coder, so please be gentle.


Reply With Quote

