public function setOptions(array $options = array()) { parent::setOptions($options); foreach ($this->_config as $name => $value) { switch ($name) { case 'in': if (preg_match('/^[a-z0-9]+$/', $value)) { $this->reservationNumber = $value; } break; case 'au': if (preg_match('/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/', $value)) { $this->referenceId = $value; } break; } } }
public function setOptions(array $options = array()) { parent::setOptions($options); foreach ($this->_config as $name => $value) { switch ($name) { case 'x_fp_sequence': $this->reservationnumber = $value; break; case 'x_trans_id': $this->referenceid = $value; break; case 'x_login': $this->merchantcode = $value; break; case 'x_amount': $this->amount = $value; break; } } }
public function setOptions(array $options = array()) { parent::setOptions($options); }