Beispiel #1
0
 /**
  * Returns true if order has allowed backend payment transactions
  *
  * @param \XLite\Model\Order $entity Order
  *
  * @return boolean
  */
 protected function hasPaymentActions(\XLite\Model\Order $entity)
 {
     $result = \Includes\Utils\ArrayManager::filterByKeys($entity->getAllowedPaymentActions(), $this->getTransactionsFilter());
     return !empty($result);
 }
 /**
  * {@inheritDoc}
  */
 public function getAllowedPaymentActions()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAllowedPaymentActions', array());
     return parent::getAllowedPaymentActions();
 }