Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions class-gf-paystack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down