/** * 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(); } }
public function testIsCreditCardMethod() { $this->assertFalse($this->_model->getIsCreditCardMethod('payflow_direct')); }