• Hi,

    Thanks for a great plugin, made the integration with the Nets payment portal really smooth and easy!

    We’re facing an issue that uncaught errors get raised whenever we set an order from the status “processing” to “cancelled” in WooCommerce if the order has already been manually refunded in the official Nets Easy control panel (https://portal.dibspayment.eu/) before we attempt to cancel the order in WooCommerce.

    Uncaught Error: Cannot use object of type WP_Error as array in <site>/public_html/wp-content/plugins/dibs-easy-for-woocommerce/classes/class-nets-easy-order-management.php:140
    Stack trace:
    #0 <site>/public_html/wp-includes/class-wp-hook.php(309): Nets_Easy_Order_Management->dibs_order_canceled(9292)
    #1 <site>/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #2 <site>/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #3 <site>/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(364): do_action('woocommerce_ord...', 9292, Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #4 <site>/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition()
    #5 <site>/public_html/wp-content/plugins/woocommerce/includes/admin

    WordPress-version 6.0.1
    Nets Easy for WooCommerce (version 2.0.1)
    PHP-version 7.4.30

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Uncaught error when cancelling orders that has already been refunded in Nets’ is closed to new replies.