Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | class PaymentProviders |
||
16 | { |
||
17 | /* Payment provider identifier for PayWay by ABA Bank */ |
||
18 | const PAYWAY_KH = 'payway_kh'; |
||
19 | /* Payment provider identifier for Pi Pay */ |
||
20 | const PIPAY_KH = 'pipay_kh'; |
||
21 | /* Payment provider identifier for iPay88 Cambodia */ |
||
22 | const IPAY88_KH = 'ipay88_kh'; |
||
23 | |||
24 | /** |
||
25 | * Creates a GetloyPaymentProvider object for the specified provider. |
||
26 | * @param string $paymentMethod Payment method identifier. |
||
27 | * @param array $config Configuration for the payment method. |
||
28 | * @return PaymentProvider The payment provider object. |
||
29 | * @throws Exception If the provided payment method is unsupported or the payment method |
||
30 | * configuration is incomplete. |
||
31 | * @ignore description |
||
32 | */ |
||
33 | public static function paymentProviderFactory( |
||
53 |