Watch out, 1.0.2 contains a bug because of get_class() (PHP8)
-
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”.
- You must be logged in to reply to this review.