Esempio n. 1
0
 /**
  * Get card number. Adds saved flag for saved ones
  *
  * @param \XLite\Model\AEntity $entity Entity
  *
  * @return \XLite\Model\Payment\Transaction or null
  */
 protected function getCardNumber(\XLite\Model\AEntity $entity)
 {
     $result = $entity->getCardNumber();
     if ($entity->getTransaction() && $entity->getTransaction()->getPaymentMethod() && $entity->getTransaction()->getPaymentMethod()->getClass() == 'Module\\CDev\\XPaymentsConnector\\Model\\Payment\\Processor\\SavedCard') {
         $result .= ' (Saved)';
     }
     return $result;
 }