diff --git a/classes/class.pmprogateway_payfast.php b/classes/class.pmprogateway_payfast.php index 3bfbe35..58f0a8b 100644 --- a/classes/class.pmprogateway_payfast.php +++ b/classes/class.pmprogateway_payfast.php @@ -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; } /**