• Resolved calyweb

    (@calyweb)


    Hi,

    Since your last updates, the order refund API is not working anymore

    Indeed, on the return on the preparedatabase you have added that
    return apply_filters( “woocommerce_rest_pre_insert_{$this->post_type}_object”, $refund, $request, $creating );

    Except that for a refund, the post type is shop_order_refund,and is not usuable with your filter, that only handle post and pages, so it creates a fatal error each time

    Use return $refund; instead repair the problem, please solve it on the next update, for V2 and V3 controllers thanks

Viewing 1 replies (of 1 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @calyweb

    I would suggest creating a bug report in our GitHub repo so that our dev team can check it and provide further insights.

    For reference, this particular forum is meant for general support with the core functionality of WooCommerce itself. For development and custom coding questions, it’s best to ask for insight related to those on either the WooCommerce Advanced Facebook group or the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.

    I wish I could help more, but hopefully, this gets you going in the right direction to get some further insight. If you have any other questions, feel free to ask.

Viewing 1 replies (of 1 total)
  • The topic ‘Order API Refund not working since last updates’ is closed to new replies.