/** * Stage the street address * * In the event that there isn't anything in there, we need to send * something along so that AVS checks get triggered at all. * * The zero is intentional: Allegedly, Some banks won't perform the check * if the address line contains no numerical data. */ protected function stage_street($normalized) { $street = ''; if (isset($normalized['street'])) { $street = trim($normalized['street']); } if (!$street || !DataValidator::validate_not_just_punctuation($street)) { $street = 'N0NE PROVIDED'; //The zero is intentional. See function comment. } return $street; }