Ejemplo n.º 1
0
 public static function gateway($gateway = null, $options = array())
 {
     $gateway = "Merchant_Billing_" . Inflect::camelize($gateway);
     if (class_exists($gateway)) {
         return new $gateway($options);
     }
     throw new Exception("Unable to load class: {$gateway}.");
 }
Ejemplo n.º 2
0
 public static function gateway($gateway = null, $options = array())
 {
     $gateway = 'Merchant_Billing_' . Inflect::camelize($gateway);
     return new $gateway($options);
 }