Example #1
0
 /**
  * Don't show CC type for non-CC methods
  *
  * @return string|null
  */
 public function getCcTypeName()
 {
     if (\Magento\Paypal\Model\Config::getIsCreditCardMethod($this->getInfo()->getMethod())) {
         return parent::getCcTypeName();
     }
 }
Example #2
0
 public function testIsCreditCardMethod()
 {
     $this->assertFalse($this->_model->getIsCreditCardMethod('payflow_direct'));
 }