Adding PayJunction to OSCommerce
Applies to: PayJunction payment plugin for OSCommerce, when OSC has the CVV accepting patch installed.
Symptom:
- "Credit Card Error" and a blank red line with no error message.
Bug in the payjunction.php file -- Line 122 (approximately) reads:
$result = $cc_validation->validate($HTTP_POST_VARS['payjunction_cc_number'],
$HTTP_POST_VARS['payjunction_cc_expires_month'
], $HTTP_POST_VARS['payjunction_cc_expires_year']);
and should read:
$result = $cc_validation->validate($HTTP_POST_VARS['payjunction_cc_number'],
$HTTP_POST_VARS['payjunction_cc_expires_month'
], $HTTP_POST_VARS['payjunction_cc_expires_year'],
$HTTP_POST_VARS['payjunction_cc_cvv']);
Also, approximately line 136, below the "case -4 ... TEXT_CCVAL_ERROR_INVALID_DATE" should be a stanza:
case -5:
$error = TEXT_CCVAL_ERROR_INVALID_CCV;
break;
Which is what was happening above (the CVV was not being passed) -- and then the -5 error (invalid CVV) is not handled either.