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}.");
 }
Beispiel #2
0
 public static function gateway($gateway = null, $options = array())
 {
     $gateway = 'Merchant_Billing_' . Inflect::camelize($gateway);
     return new $gateway($options);
 }