Skip to content

Commit 7037d6c

Browse files
Merge pull request #14 from PaystackOSS/patch/v2.0.4
Patch/v2.0.4
2 parents 5ab71f0 + 608d03b commit 7037d6c

File tree

5 files changed

+55
-56
lines changed

5 files changed

+55
-56
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/workflows/deploy.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,21 @@ jobs:
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v2
12-
- name: Set up SVN
13-
run: sudo apt-get install -y subversion
14-
- name: Deploy to WordPress.org
12+
- name: WordPress Plugin Deploy
13+
id: deploy
14+
uses: 10up/action-wordpress-plugin-deploy@stable
15+
with:
16+
generate-zip: true
1517
env:
1618
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
1719
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
1820
SLUG: paystack-add-on-for-gravity-forms
19-
run: |
20-
echo "Preparing to deploy to WordPress.org..."
21-
svn co "https://plugins.svn.wordpress.org/${SLUG}/" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" svn
22-
23-
echo "Clearing the trunk folder..."
24-
rm -rf svn/trunk/*
25-
cp -R ./* svn/trunk/
26-
27-
echo "Adding new files to SVN..."
28-
cd svn/trunk/
29-
svn add --force * --auto-props --parents --depth infinity -q
30-
31-
echo "Setting SVN props..."
32-
svn propset svn:ignore -F .svnignore .
33-
34-
echo "Removing deleted files from SVN..."
35-
svn status | grep '^!' | awk '{print $2}' | xargs -I% svn rm %
36-
37-
echo "Committing to WordPress.org..."
38-
svn commit -m "Deploying version ${GITHUB_REF:10}" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" --no-auth-cache
39-
40-
echo "Deployment completed!"
21+
- name: Upload release asset
22+
uses: actions/upload-release-asset@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
25+
with:
26+
upload_url: ${{ github.event.release.upload_url }}
27+
asset_path: ${{ steps.deploy.outputs.zip-path }}
28+
asset_name: ${{ github.event.repository.name }}.zip
29+
asset_content_type: application/zip

.github/workflows/deply.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

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;

readme.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Donate link: https://paystack.com/demo
44
Tags: payments, subscriptions, gravityforms
55
Requires at least: 5.1
66

7-
Tested up to: 6.2
7+
Tested up to: 6.6
88
Requires PHP: 7.2 and higher
9-
Stable tag: 2.0.2
9+
Stable tag: 2.0.4
1010

1111
License: GPLv2 or later
1212
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -56,6 +56,12 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl
5656

5757
== Changelog ==
5858

59+
= 2.0.4 - AUGUST 8, 2024 =
60+
* Compatibility with WordPress v6.6 and PHP 8.2
61+
62+
= 2.0.3 - SEPTMBER 26, 2023 =
63+
* Added XOF and EGP to the currency list
64+
5965
= 2.0.2 - SEPTMBER 26, 2023 =
6066
* Compatibility with WordPress v6.2 and PHP 8
6167

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

7985
== Upgrade Notice ==
8086

87+
= 2.0.3 =
88+
* Compatibility with WordPress v6.6 and PHP 8.2
89+
8190
= 2.0.2 =
8291
* Compatibility with WordPress v6.2 and PHP 8
8392

0 commit comments

Comments
 (0)