/**
  * Gets an array with Gateways.
  *
  * @access public
  * @return array
  */
 public function getGateways()
 {
     $gateways = array();
     foreach ($this->supported_gateways as $gateway) {
         $class = 'AktiveMerchant\\Billing\\Gateways\\' . $gateway;
         $gateways[Inflect::underscore($gateway)] = $class::$display_name;
     }
     return $gateways;
 }
示例#2
0
 public function factory_name()
 {
     $class = str_replace('ActiveMerchant\\Billing\\Gateways\\', '', get_class($this));
     return Inflect::underscore($class);
 }