• deafening3623

    (@deafening3623)


    Had some issue implementing this on a php8+ wordpress.

    This is because in /model/gateway_payconiq.php, it generates the callback handler by using get_class()

    $this->id = strtolower( get_class( $this ) );
    add_action( 'woocommerce_api_' . $this->id, array( $this, 'check_response' ) );

    Issue is that get_class() returns the entire namespace ?wc-api=payconiq\model\gateway_payconiq

    Fix is to manually override the “id” definition in the constructor to “gateway_payconiq”.

The topic ‘Watch out, 1.0.2 contains a bug because of get_class() (PHP8)’ is closed to new replies.