| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Project:
Ubercart In uc_credit.module function uc_payment_method_credit('cart-process', ...) if variable uc_credit_validate_numbers is false (as it probably would be if you were testing with payment method test_gateway), intval() of a non-existent argument is tested for zero which it of course is, since the argument doesn't exist. This causes CC validation to fail. The fix (in 1.0-rc2) is to change line 334 from:
if (variable_get('uc_credit_validate_numbers', TRUE) || intval($arg->payment_details['cc_number']) == 0) {to
if (variable_get('uc_credit_validate_numbers', TRUE) || intval($arg1->payment_details['cc_number']) == 0) {This bug was apparently added in 1.0-rc1
Version:
rc 
