105        parent::addChildElements();
 
  109            'americanexpress' => 
"American Express",
 
  110            'mastercard' => 
"MasterCard",
 
  113        foreach ($this->cardtypes as $card) {
 
  114            if (isset($cardnames[$card])) {
 
  115                $options[$card] = $cardnames[$card];
 
  119        $this->addSingle($this->name . 
"_card_type", array(
 
  124        $this->addText($this->name . 
"_card_number", array(
 
  125            'label' => $this->labelNumber,
 
  126            'required' => $this->required,
 
  127            'validator' => 
"/^(?:\d[ -]*?){13,16}$/",
 
  129        $this->addText($this->name . 
"_card_numbercheck", array(
 
  130            'label' => $this->labelCheck,
 
  131            'required' => $this->required,
 
  132            'validator' => 
"/^\d{3,4}$/",
 
  134        $this->addText($this->name . 
"_card_expirydate", array(
 
  135            'label' => $this->labelExpirationDate,
 
  136            'required' => $this->required,
 
  137            'validator' => 
"/^\d{2}\/\d{2}$/",
 
  139        $this->addText($this->name . 
"_card_owner", array(
 
  140            'label' => $this->labelOwner,
 
  141            'required' => $this->required,