diff --git a/class-gf-paystack.php b/class-gf-paystack.php index 73a74a4..f82528f 100644 --- a/class-gf-paystack.php +++ b/class-gf-paystack.php @@ -1976,6 +1976,48 @@ public function add_paystack_currencies($currencies) 'code' => 'KES' ); } + // Check if the currency is already registered. + if (!array_key_exists('XOF', $currencies)) { + // Add KES to the list of supported currencies. + $currencies['XOF'] = array( + 'name' => 'West African CFA Franc', + 'symbol_left' => 'CFA', + 'symbol_right' => '', + 'symbol_padding' => ' ', + 'thousand_separator' => ',', + 'decimal_separator' => '.', + 'decimals' => 2, + 'code' => 'XOF' + ); + } + // Check if the currency is already registered. + if (!array_key_exists('EGP', $currencies)) { + // Add KES to the list of supported currencies. + $currencies['EGP'] = array( + 'name' => 'Egyptian Pound', + 'symbol_left' => '£', + 'symbol_right' => '', + 'symbol_padding' => ' ', + 'thousand_separator' => ',', + 'decimal_separator' => '.', + 'decimals' => 2, + 'code' => 'EGP' + ); + } + // Check if the currency is already registered. + if (!array_key_exists('USD', $currencies)) { + // Add KES to the list of supported currencies. + $currencies['USD'] = array( + 'name' => 'US Dollars', + 'symbol_left' => '$', + 'symbol_right' => '', + 'symbol_padding' => ' ', + 'thousand_separator' => ',', + 'decimal_separator' => '.', + 'decimals' => 2, + 'code' => 'USD' + ); + } return $currencies; }