Skip to content

Commit

Permalink
Merge pull request #14 from PaystackOSS/patch/v2.0.4
Browse files Browse the repository at this point in the history
Patch/v2.0.4
  • Loading branch information
gertrude-paystack authored Aug 14, 2024
2 parents 5ab71f0 + 608d03b commit 7037d6c
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 56 deletions.
Binary file added .DS_Store
Binary file not shown.
39 changes: 14 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
29 changes: 0 additions & 29 deletions .github/workflows/deply.yml

This file was deleted.

30 changes: 30 additions & 0 deletions class-gf-paystack.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
13 changes: 11 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,6 +56,12 @@ 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

= 2.0.2 - SEPTMBER 26, 2023 =
* Compatibility with WordPress v6.2 and PHP 8

Expand All @@ -78,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

Expand Down

0 comments on commit 7037d6c

Please sign in to comment.