예제 #1
0
 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;
         }
     }
 }
예제 #2
0
 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;
         }
     }
 }
예제 #3
0
 public function setOptions(array $options = array())
 {
     parent::setOptions($options);
 }