コード例 #1
0
 public function validateTransaction(Engine_Payment_Transaction $transaction)
 {
     $data = $transaction->getData();
     if (empty($data['x_Login'])) {
         $this->_throw('No vendor identity provided');
         return false;
     }
     if (empty($data['x_Invoice_num'])) {
         $this->_throw('No invoice identity provided');
         return false;
     }
     if (empty($data['x_Amount'])) {
         $this->_throw('No total provided');
         return false;
     }
     return true;
 }