Skip to content

Commit

Permalink
Version bump to 1.5 and fix minor logic
Browse files Browse the repository at this point in the history
* Adjusted compatibility checks now. Please note that daily/weekly subscriptions do not work on sandbox mode.
  • Loading branch information
andrewlimaza committed Jan 30, 2024
1 parent af72cc4 commit 2e2b37e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pmpro-payfast.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Paid Memberships Pro - PayFast Gateway
Plugin URI: https://www.paidmembershipspro.com/add-ons/payfast-payment-gateway/
Description: Adds PayFast as a gateway option for Paid Memberships Pro.
Version: 1.4.3
Version: 1.5
Author: Paid Memberships Pro
Author URI: https://www.paidmembershipspro.com
Text Domain: pmpro-payfast
Expand Down Expand Up @@ -80,7 +80,7 @@ function pmpro_payfast_check_level_compat(){
?>
<div class="notice notice-error fade">
<p>
<?php _e( "PayFast currently doesn't support custom trials; Daily or weekly recurring pricing. Please can you update your membership levels that may have these set.", 'pmpro-payfast' );?>
<?php esc_html_e( "PayFast currently doesn't support custom trials. Please can you update your membership levels that may have these set.", 'pmpro-payfast' );?>
</p>
</div>
<?php
Expand Down Expand Up @@ -143,7 +143,7 @@ function pmpro_payfast_check_billing_compat( $level = NULL ){

$level = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->pmpro_membership_levels WHERE id = %d LIMIT 1" , $level ) );

if( pmpro_isLevelTrial( $level ) || ( $level->cycle_period == "Day" || $level->cycle_period == "Week") ){
if( pmpro_isLevelTrial( $level ) ){
return false;
}

Expand Down

0 comments on commit 2e2b37e

Please sign in to comment.