Beispiel #1
0
 public static function getPaymentSystem($systemCode, $methodID = null)
 {
     if (!isset(self::$paymentSystems[$systemCode])) {
         return null;
     }
     $methodModel = null;
     if ($methodID) {
         $methodModel = new PaymentMethod();
         $methodModel->fillFromID($methodID);
     }
     return new self::$paymentSystems[$systemCode]['class_name']($methodModel);
 }