Skip to content

Commit f9bdd66

Browse files
Added XOF & EGP to currency list
1 parent 5ab71f0 commit f9bdd66

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

class-gf-paystack.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1975,6 +1975,36 @@ public function add_paystack_currencies($currencies)
19751975
'decimals' => 2,
19761976
'code' => 'KES'
19771977
);
1978+
1979+
1980+
// Check if the currency is already registered.
1981+
if (!array_key_exists('', $currencies)) {
1982+
// Add XOF to the list of supported currencies.
1983+
$currencies['XOF'] = array(
1984+
'name' => 'West African CFA franc',
1985+
'symbol_left' => 'CFA',
1986+
'symbol_right' => '',
1987+
'symbol_padding' => ' ',
1988+
'thousand_separator' => ',',
1989+
'decimal_separator' => '.',
1990+
'decimals' => 2,
1991+
'code' => 'XOF'
1992+
);
1993+
1994+
1995+
// Check if the currency is already registered.
1996+
if (!array_key_exists('', $currencies)) {
1997+
// Add EGP to the list of supported currencies.
1998+
$currencies['EGP'] = array(
1999+
'name' => 'Egyptian Pound',
2000+
'symbol_left' => '£',
2001+
'symbol_right' => '',
2002+
'symbol_padding' => ' ',
2003+
'thousand_separator' => ',',
2004+
'decimal_separator' => '.',
2005+
'decimals' => 2,
2006+
'code' => 'EGP'
2007+
);
19782008
}
19792009

19802010
return $currencies;

0 commit comments

Comments
 (0)