コード例 #1
0
 /**
  * payment processing
  */
 public function doProcess()
 {
     // double request errors
     $this->checkDouble();
     // process type errors
     $rc = $this->doProcessType();
     if ($rc !== '00') {
         $this->payment->status = Status::ERROR;
         $this->payment->save();
         return;
     }
     $this->payment->saveByType();
 }