public function __construct($gateway) { parent::__construct($gateway); // hook the IPNListener add_action('init', array($this, 'handle_notification'), 30); }