Total Complexity | 2 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class Methods { |
||
18 | /** |
||
19 | * Constant for the Bancontact method. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | const BANCONTACT = 'bancontact'; |
||
24 | |||
25 | /** |
||
26 | * Constant for the Giropay method. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | const GIROPAY = 'giropay'; |
||
31 | |||
32 | /** |
||
33 | * Constant for the Gulden payment method. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | const GULDEN = 'gulden'; |
||
38 | |||
39 | /** |
||
40 | * Constant for the iDEAL payment method. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | const IDEAL = 'ideal'; |
||
45 | |||
46 | /** |
||
47 | * Constant for the SEPA payment method. |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | const SEPA = 'sepa'; |
||
52 | |||
53 | /** |
||
54 | * Transform WordPress payment method to Nocks method. |
||
55 | * Nocks only offers Gulden payment method to merchants. |
||
56 | * |
||
57 | * @since 1.0.0 |
||
58 | * |
||
59 | * @param string $payment_method WordPress Pay payment method. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public static function transform( $payment_method ) { |
||
72 |