Skip to content

Commit 3a654ef

Browse files
Merge pull request #4 from PaystackHQ/feature/add-kes-currency
Feature/add kes currency
2 parents b74ca96 + b1f15e1 commit 3a654ef

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

class-gf-paystack.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ public function add_paystack_currencies($currencies)
19461946

19471947
// Check if the currency is already registered.
19481948
if (!array_key_exists('ZAR', $currencies)) {
1949-
// Add GHS to the list of supported currencies.
1949+
// Add ZAR to the list of supported currencies.
19501950
$currencies['ZAR'] = array(
19511951
'name' => 'South Africa Rand',
19521952
'symbol_left' => 'R',
@@ -1960,7 +1960,7 @@ public function add_paystack_currencies($currencies)
19601960

19611961
// Check if the currency is already registered.
19621962
if (!array_key_exists('USD', $currencies)) {
1963-
// Add GHS to the list of supported currencies.
1963+
// Add USD to the list of supported currencies.
19641964
$currencies['USD'] = array(
19651965
'name' => 'United States Dollar',
19661966
'symbol_left' => '$',
@@ -1972,6 +1972,20 @@ public function add_paystack_currencies($currencies)
19721972
);
19731973
}
19741974

1975+
// Check if the currency is already registered.
1976+
if (!array_key_exists('KES', $currencies)) {
1977+
// Add KES to the list of supported currencies.
1978+
$currencies['KES'] = array(
1979+
'name' => 'Kenyan Shillings',
1980+
'symbol_left' => 'KSh',
1981+
'symbol_right' => '',
1982+
'symbol_padding' => ' ',
1983+
'thousand_separator' => ',',
1984+
'decimal_separator' => '.',
1985+
'decimals' => 2
1986+
);
1987+
}
1988+
19751989
return $currencies;
19761990
}
19771991

paystack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Paystack Add-On for Gravity Forms
44
Plugin URI: https://paystack.com/docs/libraries-and-plugins/plugins#wordpress
55
Description: Integrates Gravity Forms with Paystack, enabling end users to purchase goods and services through Gravity Forms.
6-
Version: 1.0.1
6+
Version: 1.0.2
77
Author: Paystack
88
Author URI: https://developers.paystack.com
99
License: GPL-2.0+

readme.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Contributors: webong, paystack
33
Donate link: https://paystack.com/demo
44
Tags: payments, subscriptions, gravityforms
55
Requires at least: 5.1
6-
Tested up to: 5.6
6+
Tested up to: 5.8
77
Requires PHP: 7.2
8-
Stable tag: 1.0.1
8+
Stable tag: 1.0.2
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -54,6 +54,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl
5454

5555
== Changelog ==
5656

57+
= 1.0.2 - NOVEMBER 1, 2021 =
58+
* Added support for KES currency
59+
5760
= 1.0.1 - JANUARY 22, 2021 =
5861
* Added support for ZAR currency
5962

@@ -63,6 +66,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl
6366

6467
== Upgrade Notice ==
6568

69+
= 1.0.2 =
70+
* You should update to this version if you are a Kenyan merchant on Paystack
71+
6672
= 1.0.1 =
6773
* You should update to this version if you are a South African merchant on Paystack
6874

0 commit comments

Comments
 (0)