Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 906a2d8

Browse files
Merge pull request #22 from PaystackOSS/patch/v2.0.2
Added support for XOF & EGP. Updated the changelog in the readme.txt.
2 parents b18604b + 56bb3b1 commit 906a2d8

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

includes/class-paystack-give.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,26 @@ function give_paystack_add_currencies($currencies)
280280
'number_decimals' => 2,
281281
),
282282
),
283+
'XOF' => array(
284+
'admin_label' => sprintf(__('West African CFA franc (%1$s)', 'give'), 'XOF'),
285+
'symbol' => 'XOF;',
286+
'setting' => array(
287+
'currency_position' => 'before',
288+
'thousands_separator' => '.',
289+
'decimal_separator' => ',',
290+
'number_decimals' => 2,
291+
),
292+
),
293+
'EGP' => array(
294+
'admin_label' => sprintf(__('Egyptian Pound (%1$s)', 'give'), 'EGP'),
295+
'symbol' => '£;',
296+
'setting' => array(
297+
'currency_position' => 'before',
298+
'thousands_separator' => '.',
299+
'decimal_separator' => ',',
300+
'number_decimals' => 2,
301+
),
302+
),
283303
'USD' => array(
284304
'admin_label' => sprintf(__('US Dollars (%1$s)', 'give'), 'USD'),
285305
'symbol' => 'USD;',

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pa
8181

8282
== Changelog ==
8383

84+
= 2.0.2 =
85+
* Add support for XOF & EGP
86+
8487
= 2.0.1 =
8588
* Compatibility with WordPress 6.2 and PHP 8
8689

0 commit comments

Comments
 (0)