@@ 56-59 (lines=4) @@ | ||
53 | // Paybox version and default_currency special hack: Get the number. |
|
54 | $options['paybox_version'] = constant(Version::class.'::'.strtoupper($config['paybox']['version'])); |
|
55 | unset($config['paybox']['version']); |
|
56 | if (array_key_exists('default_currency', $config['paybox'])) { |
|
57 | $options['paybox_default_currency'] = constant(Currency::class.'::'.strtoupper($config['paybox']['default_currency'])); |
|
58 | unset($config['paybox']['default_currency']); |
|
59 | } |
|
60 | if (array_key_exists('default_activity', $config['paybox'])) { |
|
61 | $options['paybox_default_activity'] = constant(Activity::class.'::'.strtoupper($config['paybox']['default_activity'])); |
|
62 | unset($config['paybox']['default_activity']); |
|
@@ 60-63 (lines=4) @@ | ||
57 | $options['paybox_default_currency'] = constant(Currency::class.'::'.strtoupper($config['paybox']['default_currency'])); |
|
58 | unset($config['paybox']['default_currency']); |
|
59 | } |
|
60 | if (array_key_exists('default_activity', $config['paybox'])) { |
|
61 | $options['paybox_default_activity'] = constant(Activity::class.'::'.strtoupper($config['paybox']['default_activity'])); |
|
62 | unset($config['paybox']['default_activity']); |
|
63 | } |
|
64 | ||
65 | // Convert paybox option format |
|
66 | foreach ($config['paybox'] as $key => $value) { |