Skip to content

Commit

Permalink
Fix compatibility for PMPro 3.2+
Browse files Browse the repository at this point in the history
* BUG FIX: Fixed a fatal error where the parent gateway class construct. method was removed.
  • Loading branch information
andrewlimaza committed Oct 3, 2024
1 parent 7726308 commit b8af627
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions classes/class.pmprogateway_payfast.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
add_action( 'init', array( 'PMProGateway_PayFast', 'init' ) );
class PMProGateway_PayFast extends PMProGateway {

function __construct( $gateway = null ) {
return parent::__construct( $gateway );
function __construct( $gateway = NULL ) {
$this->gateway = $gateway;
$this->gateway_environment = get_option( 'pmpro_gateway_environment' );

return $this->gateway;
}

/**
Expand Down

0 comments on commit b8af627

Please sign in to comment.