From 210b45eb96764c4415403891add4b729adacaf37 Mon Sep 17 00:00:00 2001 From: Gertrude Abagale Date: Wed, 4 Oct 2023 12:19:47 +0000 Subject: [PATCH 1/4] deleted the duplicate of the ./deploy.yml file and renamed the new file --- .DS_Store | Bin 0 -> 6148 bytes .github/workflows/deploy.yml | 39 +++++++++++++---------------------- .github/workflows/deply.yml | 29 -------------------------- 3 files changed, 14 insertions(+), 54 deletions(-) create mode 100644 .DS_Store delete mode 100644 .github/workflows/deply.yml diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8246bd13abe5eeadaf2df8c007f75302d45d165f GIT binary patch literal 6148 zcmeHKy-ve05WXuZ1i{de4etn~Zj7M{FF;?Ql%f`?Q7Sf}L#)Ux@fc8`24uT_DRE^J#y0Q5K6v zq#FJz1M=(=I-)6E(M|OHlEeMFuPF0;JTJ$vr7y3~w{N4zlh{A`*1wq5-i_`9QfcdR zUz*X9#?kK7J!?kPYj{7XYFJyRC|8xVM@99x_n$VwK|$x>;*zeTYWV&b)kOY!El+n< zEo(8WO4?$gI@n?x6=gsfPzHXS0rYH4ANga^Vt73fnr95L9Z!)`)c7SMY1>BQmi!C_|(Clq$OV}0Yoi8GHn zDg(+u%)o}f>`DJWZ9o6VNqVIWC9qzrf{I9-^;o4~;#x6c er4{c%oxpBn0?YzhkFY@WN5IjbgEH`|4154jEN#L7 literal 0 HcmV?d00001 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 63134c4..26448d5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,32 +9,21 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up SVN - run: sudo apt-get install -y subversion - - name: Deploy to WordPress.org + - name: WordPress Plugin Deploy + id: deploy + uses: 10up/action-wordpress-plugin-deploy@stable + with: + generate-zip: true env: SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SLUG: paystack-add-on-for-gravity-forms - run: | - echo "Preparing to deploy to WordPress.org..." - svn co "https://plugins.svn.wordpress.org/${SLUG}/" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" svn - - echo "Clearing the trunk folder..." - rm -rf svn/trunk/* - cp -R ./* svn/trunk/ - - echo "Adding new files to SVN..." - cd svn/trunk/ - svn add --force * --auto-props --parents --depth infinity -q - - echo "Setting SVN props..." - svn propset svn:ignore -F .svnignore . - - echo "Removing deleted files from SVN..." - svn status | grep '^!' | awk '{print $2}' | xargs -I% svn rm % - - echo "Committing to WordPress.org..." - svn commit -m "Deploying version ${GITHUB_REF:10}" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" --no-auth-cache - - echo "Deployment completed!" + - name: Upload release asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ${{ steps.deploy.outputs.zip-path }} + asset_name: ${{ github.event.repository.name }}.zip + asset_content_type: application/zip \ No newline at end of file diff --git a/.github/workflows/deply.yml b/.github/workflows/deply.yml deleted file mode 100644 index 26448d5..0000000 --- a/.github/workflows/deply.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Deploy to WordPress.org -on: - release: - types: [published] -jobs: - tag: - name: New release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: WordPress Plugin Deploy - id: deploy - uses: 10up/action-wordpress-plugin-deploy@stable - with: - generate-zip: true - env: - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SLUG: paystack-add-on-for-gravity-forms - - name: Upload release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{ steps.deploy.outputs.zip-path }} - asset_name: ${{ github.event.repository.name }}.zip - asset_content_type: application/zip \ No newline at end of file From f9bdd6656cd851690e79a024fad010367334ac5e Mon Sep 17 00:00:00 2001 From: Gertrude Abagale Date: Mon, 22 Apr 2024 07:50:14 +0000 Subject: [PATCH 2/4] Added XOF & EGP to currency list --- class-gf-paystack.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/class-gf-paystack.php b/class-gf-paystack.php index 73a74a4..f0b2ab2 100644 --- a/class-gf-paystack.php +++ b/class-gf-paystack.php @@ -1975,6 +1975,36 @@ public function add_paystack_currencies($currencies) 'decimals' => 2, 'code' => 'KES' ); + + + // Check if the currency is already registered. + if (!array_key_exists('', $currencies)) { + // Add XOF 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('', $currencies)) { + // Add EGP 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' + ); } return $currencies; From bfbab951afbf486edae989f8c9f6cc497429910d Mon Sep 17 00:00:00 2001 From: Gertrude Abagale Date: Mon, 22 Apr 2024 08:34:38 +0000 Subject: [PATCH 3/4] Updated the changelog in the readme.txt file --- readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.txt b/readme.txt index 10f9b17..018f747 100644 --- a/readme.txt +++ b/readme.txt @@ -56,6 +56,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl == Changelog == += 2.0.3 - SEPTMBER 26, 2023 = +* Added XOF and EGP to the currency list + = 2.0.2 - SEPTMBER 26, 2023 = * Compatibility with WordPress v6.2 and PHP 8 From 608d03b92058323157e31dce999d1bfe4bd6efcb Mon Sep 17 00:00:00 2001 From: Gertrude Abagale Date: Thu, 8 Aug 2024 23:50:24 +0100 Subject: [PATCH 4/4] updated the changelog and upgrade notice based on the current compatibility with latest WP and PHP versions --- readme.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index 018f747..030ede2 100644 --- a/readme.txt +++ b/readme.txt @@ -4,9 +4,9 @@ Donate link: https://paystack.com/demo Tags: payments, subscriptions, gravityforms Requires at least: 5.1 -Tested up to: 6.2 +Tested up to: 6.6 Requires PHP: 7.2 and higher -Stable tag: 2.0.2 +Stable tag: 2.0.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -56,6 +56,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl == Changelog == += 2.0.4 - AUGUST 8, 2024 = +* Compatibility with WordPress v6.6 and PHP 8.2 + = 2.0.3 - SEPTMBER 26, 2023 = * Added XOF and EGP to the currency list @@ -81,6 +84,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl == Upgrade Notice == += 2.0.3 = +* Compatibility with WordPress v6.6 and PHP 8.2 + = 2.0.2 = * Compatibility with WordPress v6.2 and PHP 8