PDA

View Full Version : ViaKLIX Payment gateway



michael_s
01-10-2007, 11:12 AM
Hello, after I've installed version 2.1 it does not work well, so I read forum and found information about few bugs. I've fixed both files viaklix.php in both folders.
Fixes I've made:
CHANGE
tep_draw_hidden_field('ssl_receipt_apprvl_get_url' , tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true)) .
tep_draw_hidden_field('ssl_receipt_decl_get_url', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . '&viaklix_cc_owner=' . urlencode($HTTP_POST_VARS['viaklix_cc_owner']) . '&passedvars=coming' , 'SSL', true));


TO:

tep_draw_hidden_field('ssl_receipt_apprvl_get_url' , tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false)) .
tep_draw_hidden_field('ssl_receipt_decl_get_url', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . '&viaklix_cc_owner=' . urlencode($HTTP_POST_VARS['viaklix_cc_owner']) . '&passedvars=coming' , 'SSL', false));


THAT MADE IT WORK FOR ME, RETURNS TO THE PROPER CHECKOUT PAGE, ORDER POSTED TO DB

and I've fixed language file, added
define('CVV_NUMBER_MIN_LENGTH', 3);
define('CVV_NUMBER_MAX_LENGTH', 4);

and fixed names of other constants.

More... (http://www.oscommerce.com/community/contributions,1896)