/**
  * Check whether method active in configuration and supported for merchant country or not
  *
  * @param string $method Method code
  * @return bool
  *
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  */
 public function isMethodActive($method)
 {
     return parent::isMethodActive(Config::METHOD_PAYMENT_PRO) || parent::isMethodActive(Config::METHOD_PAYFLOWPRO);
 }
Example #2
0
 public function testIsMethodActive()
 {
     $this->assertFalse($this->_model->isMethodActive('payflow_direct'));
 }