Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
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); }