Kryptronic Software Wiki : CategoryAddCVVToiTransact

Kryptronic Internet Software Solutions
Oldest known version of this page was edited on 2008-05-28 07:51:47 by KryptronicWebmaster []
Page view:

Adding CVV Field to the iTransact Gateway


This change will add the CVV input field to the data requested from the customer if you are using the iTransact Secure Server processing gateway for payments. As detailed here the CVV field will be options.

In admin under Home > ClickCartPro > Commerce: Orders and Checkout > Manage Processing Gateways locate the gateway with the display name iTransact - Secure Server in the list and click on Update. In the field named Form Display Code locate the line that reads:

'desc'     => 'Enter your credit card number.'));


which you will find near the bottom of the field. Immediately below that add the following code:

$olpform['fields']['DISPLAY'][] = array('type'   => 'PASSCUSTOM',
	                                    'params' => array('name'     => 'cvv2_number',
	                                                      'required' => 0,
	                                                      'display'  => 'Card Verification Number',
	                                                      'desc'     => 'Enter your card verification number.  Some cards do not contain verification numbers.  Use the image presented below to locate your verification number.'));


If you want the CVV to be a required field, forcing the customer to enter a value, change the zero (0) to a one (1) on the line shown above that reads:

'required' => 0,


Next locate the line that reads:

'yformat'  => 'YYYY'));


which will be a little further down in the Form Display Code field and below where you just added the code shown above. Immediately below that line add the following code:

// +--
// | Set a global variable to display the card verification
// | number image.
// +--

$this->globals('ecom.olp_showimg_cvv2',1);


When the change are completed bottom portion of the Form Display Code field should look like this:

// +--
// | Create the DISPLAY fields for the form.
// +--

$olpform['fields']['DISPLAY'][] = array('type'   => 'PASSCUSTOM',
	                                    'params' => array('name'     => 'ccnum',
	                                                      'required' => 1,
	                                                      'display'  => 'Card Number',
	                                                      'desc'     => 'Enter your credit card number.'));

$olpform['fields']['DISPLAY'][] = array('type'   => 'PASSCUSTOM',
	                                    'params' => array('name'     => 'cvv2_number',
	                                                      'required' => 0,
	                                                      'display'  => 'Card Verification Number',
	                                                      'desc'     => 'Enter your card verification number.  Some cards do not contain verification numbers.  Use the image presented below to locate your verification number.'));

$olpform['fields']['DISPLAY'][] = array('type'   => 'EXPTWOFIELDS',
	                                    'params' => array('mname'    => 'ccmo',
	                                                      'yname'    => 'ccyr',
	                                                      'required' => 1,
	                                                      'display'  => 'Card Expiration Date',
	                                                      'desc'     => 'Select the month and year your card expires from the list.',
	                                                      'mformat'  => 'ABC',
	                                                      'yformat'  => 'YYYY'));

// +--
// | Set a global variable to display the card verification
// | number image.
// +--

$this->globals('ecom.olp_showimg_cvv2',1);

// +--
// | Globalize the $olpform array and return.
// +--

$this->globals('ecom.olpform',$olpform);

?>


Click on the Submit button to save your changes.

ClickCartPro - Administration
ClickCartPro - Getting Started