Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
23be341
Merge pull request #22 from PaystackOSS/patch/v1.3.2
gertrude-paystack Sep 27, 2023
d9622f1
Merge pull request #23 from PaystackOSS/patch/v1.3.2
gertrude-paystack Oct 3, 2023
f349999
Update deploy.yml
gertrude-paystack Oct 4, 2023
b521c72
Merge pull request #24 from PaystackOSS/gertrude-paystack-patch-1
gertrude-paystack Oct 4, 2023
716d6af
Update deploy.yml
gertrude-paystack Oct 4, 2023
d6e9c9c
Merge pull request #25 from PaystackOSS/gertrude-paystack-patch-2
gertrude-paystack Oct 4, 2023
3a5c433
Merge pull request #26 from PaystackOSS/patch/v1.3.2
lukman-paystack Oct 4, 2023
8302e2e
fixed the expiredOn parameter bug on subscription
Jan 17, 2024
cd079cf
updated the readme.txt and main.php files with v1.3.3
Jan 21, 2024
bf46e04
updated the readme.txt file
Jan 22, 2024
964e542
Merge pull request #27 from OWUREE/fix/incorrect-expiredOn-set
lukman-paystack Jan 22, 2024
4a96ccb
Resolved conflicts between patch/v1.3.3 and master
gertrude-paystack Aug 21, 2024
bacc2d9
created a new patch number, updated changelog & upgrade notice
gertrude-paystack Aug 21, 2024
ac0c894
Merge pull request #30 from PaystackOSS/patch/v1.3.4
gertrude-paystack Aug 21, 2024
be23310
Updated the plugin version number to 1.3.4
gertrude-paystack Sep 3, 2024
b1a46a2
Merge pull request #31 from PaystackOSS/patch/v1.3.4
gertrude-paystack Sep 3, 2024
3da77ce
Updated Compatibility with WordPress v6.6.1 and PHP 8.2.0 & the plugi…
gertrude-paystack Sep 3, 2024
5ae9b5c
Merge pull request #32 from PaystackOSS/patch/v1.3.5
gertrude-paystack Sep 3, 2024
d3f5636
Compatibility with WordPress 6.8.2 and PHP 8.2.23
gertrude-paystack Oct 10, 2025
a489a0e
Merge pull request #33 from PaystackOSS/patch/v1.3.6
gertrude-paystack Oct 10, 2025
ece0ace
Compatibility with WordPress 6.8.3 and PHP 8.2.23
gertrude-paystack Oct 12, 2025
0a36bd5
Merge pull request #34 from PaystackOSS/patch/v1.3.7
gertrude-paystack Oct 12, 2025
fea2d68
updated the Upgrade notice
gertrude-paystack Oct 12, 2025
0d7827b
Merge pull request #35 from PaystackOSS/patch/v1.3.7
gertrude-paystack Oct 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflow
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.deploy.outputs.zip-path }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_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
asset_content_type: application/zip
24 changes: 21 additions & 3 deletions MeprPaystackGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,30 @@ public function record_create_subscription()

// If no trial or trial amount is zero then we've got to make
// sure the confirmation txn lasts through the trial
if (!$sub->trial || ($sub->trial && $sub->trial_amount <= 0.00)) {
$trial_days = ($sub->trial) ? $sub->trial_days : $mepr_options->grace_init_days;
// if (!$sub->trial || ($sub->trial && $sub->trial_amount <= 0.00)) {
// $trial_days = ($sub->trial) ? $sub->trial_days : $mepr_options->grace_init_days;
// $txn->status = MeprTransaction::$confirmed_str;
// $txn->txn_type = MeprTransaction::$subscription_confirmation_str;
// $txn->expires_at = MeprUtils::ts_to_mysql_date(time() + MeprUtils::days($trial_days), 'Y-m-d 23:59:59');
// $txn->set_subtotal(0.00); // Just a confirmation txn
// $txn->store();
// }

if (!$sub->trial) {
$txn->status = MeprTransaction::$confirmed_str;
$txn->txn_type = MeprTransaction::$subscription_confirmation_str;
$next_payment_date = $sdata->next_payment_date;
$txn->expires_at = MeprUtils::ts_to_mysql_date(strtotime($next_payment_date), 'Y-m-d 23:59:59');

$txn->store();
}

else if($sub->trial && $sub->trial_amount <= 0.00) {
$trial_days = $sub->trial_days;
$txn->status = MeprTransaction::$confirmed_str;
$txn->txn_type = MeprTransaction::$subscription_confirmation_str;
$txn->expires_at = MeprUtils::ts_to_mysql_date(time() + MeprUtils::days($trial_days), 'Y-m-d 23:59:59');
$txn->set_subtotal(0.00); // Just a confirmation txn

$txn->store();
}

Expand Down
2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: MemberPress Paystack
* Plugin URI: https://wordpress.org/plugins/paystack-memberpress/
* Description: Paystack integration for MemberPress.
* Version: 1.3.2
* Version: 1.3.7
* Author: Paystack
* Author URI: https://paystack.com/
* Developer: Wisdom Ebong
Expand Down
28 changes: 26 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: paystack, kaneahabagale
Tags: paystack, billing, subscription, payment, memberpress,
Requires at least: 5.1
Tested up to: 6.3
Tested up to: 6.8.3
Requires PHP: 7.2 and higher
Stable tag: 1.3.2
Stable tag: 1.3.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -83,13 +83,37 @@ Here you can browse the source, look at open issues and keep track of developmen

== Changelog ==

= 1.3.7 - October 10, 2025 =
* Compatibility with WordPress 6.8.3 and PHP 8.2.23

= 1.3.6 - July 21, 2025 =
* Compatibility with WordPress 6.8.2 and PHP 8.2.23

= 1.3.5 - August 8, 2024 =
* Compatibility with WordPress 6.6.1 and PHP 8.2.0

= 1.3.3 =
* Fixed incorrect date set on expiredOn parameter

= 1.3.2 - Septmber 26, 2023 =
* Compatibility with WordPress 6.3 and PHP 8.2.0

= 1.3.1 - May 9, 2022 =
* Fix: Add support for weekly, quarterly, and yearly plans

== Upgrade Notice ==
= 1.3.7 - October 10, 2025 =
* Compatibility with WordPress 6.8.3 and PHP 8.2.23

= 1.3.6 - July 21, 2025 =
* Compatibility with WordPress 6.8.2 and PHP 8.2.23

= 1.3.5 =
* Compatibility with WordPress 6.6.1 and PHP 8.2.0

= 1.3.3 =
* Fixed incorrect date set on expiredOn parameter

= 1.3.2 =
* Compatibility with WordPress 6.3 and PHP 8.2.0

Loading