예제 #1
0
 /**
  * Finalize before saving.
  */
 protected function _beforeSave()
 {
     // Sync only if we have an info instance for payment data.
     if ($this->hasInfoInstance()) {
         $this->_createCustomerPaymentProfile();
     }
     return parent::_beforeSave();
 }