Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/units/orders/order_validator.php
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Line(s) | |||||
// masked card numbers always appear valid in admin | // masked card numbers always appear valid in admin | ||||
return true; | return true; | ||||
} | } | ||||
} | } | ||||
if (defined('DEBUG_MODE') && kUtil::constOn('DBG_PAYMENT_GW')) { | if (defined('DEBUG_MODE') && kUtil::constOn('DBG_PAYMENT_GW')) { | ||||
$gw_data = $this->dataSource->getGatewayData(); | $gw_data = $this->dataSource->getGatewayData(); | ||||
$this->Application->registerClass( $gw_data['ClassName'], GW_CLASS_PATH.'/'.$gw_data['ClassFile'] ); | /** @var kGWBase $gateway_object */ | ||||
$gateway_object = $this->Application->recallObject( $gw_data['ClassName'] ); | $gateway_object = $this->Application->recallObject($gw_data['ClassName']); | ||||
$test_numbers = $gateway_object->GetTestCCNumbers(); | $test_numbers = $gateway_object->GetTestCCNumbers(); | ||||
if ( in_array($value, $test_numbers) ) { | if ( in_array($value, $test_numbers) ) { | ||||
return true; | return true; | ||||
} | } | ||||
} | } | ||||
$error_field = isset($params['error_field']) ? $params['error_field'] : $field; | $error_field = isset($params['error_field']) ? $params['error_field'] : $field; | ||||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |