Skip to content

Commit aa294ed

Browse files
Merge branch 'main' into release/1.0.2
2 parents e503344 + ac7eb08 commit aa294ed

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

class-gf-paystack.php

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,8 @@ public function add_paystack_currencies($currencies)
19261926
'symbol_padding' => ' ',
19271927
'thousand_separator' => ',',
19281928
'decimal_separator' => '.',
1929-
'decimals' => 2
1929+
'decimals' => 2,
1930+
'code' => 'NGN'
19301931
);
19311932
}
19321933

@@ -1940,35 +1941,39 @@ public function add_paystack_currencies($currencies)
19401941
'symbol_padding' => ' ',
19411942
'thousand_separator' => ',',
19421943
'decimal_separator' => '.',
1943-
'decimals' => 2
1944+
'decimals' => 2,
1945+
'code' => 'GHS'
19441946
);
19451947
}
19461948

19471949
// Check if the currency is already registered.
19481950
if (!array_key_exists('ZAR', $currencies)) {
1949-
// Add GHS to the list of supported currencies.
1951+
// Add ZAR to the list of supported currencies.
19501952
$currencies['ZAR'] = array(
19511953
'name' => 'South Africa Rand',
19521954
'symbol_left' => 'R',
19531955
'symbol_right' => '',
19541956
'symbol_padding' => ' ',
19551957
'thousand_separator' => ',',
19561958
'decimal_separator' => '.',
1957-
'decimals' => 2
1959+
'decimals' => 2,
1960+
'code' => 'ZAR'
19581961
);
19591962
}
19601963

1964+
19611965
// Check if the currency is already registered.
1962-
if (!array_key_exists('USD', $currencies)) {
1963-
// Add GHS to the list of supported currencies.
1964-
$currencies['USD'] = array(
1965-
'name' => 'United States Dollar',
1966-
'symbol_left' => '$',
1966+
if (!array_key_exists('KES', $currencies)) {
1967+
// Add KES to the list of supported currencies.
1968+
$currencies['KES'] = array(
1969+
'name' => 'Kenyan Shillings',
1970+
'symbol_left' => 'KSh',
19671971
'symbol_right' => '',
19681972
'symbol_padding' => ' ',
19691973
'thousand_separator' => ',',
19701974
'decimal_separator' => '.',
1971-
'decimals' => 2
1975+
'decimals' => 2,
1976+
'code' => 'KES'
19721977
);
19731978
}
19741979

paystack.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/*
33
Plugin Name: Paystack Add-On for Gravity Forms
44
Plugin URI: https://paystack.com/docs/libraries-and-plugins/plugins#wordpress
5+
0
56
Description: Integrates Gravity Forms with Paystack, enabling customers to pay for goods and services through Gravity Forms.
67
Version: 1.0.2
78
Author: Paystack

readme.txt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Contributors: webong, paystack
33
Donate link: https://paystack.com/demo
44
Tags: payments, subscriptions, gravityforms
55
Requires at least: 5.1
6+
67
Tested up to: 6.2
7-
Requires PHP: 7.2
8-
Stable tag: 1.0.2
8+
Requires PHP: 7.2 and higher
9+
Stable tag: 2.0.1
10+
911
License: GPLv2 or later
1012
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1113

@@ -54,10 +56,16 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl
5456

5557
== Changelog ==
5658

57-
= 1.0.2 - APRIL 14, 2022 =
59+
= 2.0.1 - APRIL 14, 2022 =
5860
* Test plugin up to WordPress 6.2
5961
* Fix PHP warnings about missing currency code
6062

63+
= 2.0.0 - NOVEMBER 1, 2021 =
64+
* Compatibility with WordPress v5.9 and PHP 8
65+
66+
= 1.0.2 - NOVEMBER 1, 2021 =
67+
* Added support for KES currency
68+
6169
= 1.0.1 - JANUARY 22, 2021 =
6270
* Added support for ZAR currency
6371

@@ -71,6 +79,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl
7179
* Fix PHP warnings about missing currency code
7280

7381

82+
= 1.0.2 =
83+
* You should update to this version if you are a Kenyan merchant on Paystack
84+
7485
= 1.0.1 =
7586
* You should update to this version if you are a South African merchant on Paystack
7687

0 commit comments

Comments
 (0)