• I have a problem with partial refunds:

    1. Manually refund some amount from mpay24’s webinterface
    2. mpay24’s order status update to CREDITED will trigger an $order->update_status( 'refunded', ...)
    3. In WC 2.4.13 this calls do_action( 'woocommerce_order_status_refunded', ...), which is hooked up to wc_order_fully_refunded() that refunds the maximum possible amount.

    Obviously, this screws up sales statistics, but also, it sends transactional email to the customer showing the wrong (full) amount refunded.

    https://wordpress.org/plugins/woocommerce-mpay24-gateway/

Viewing 1 replies (of 1 total)
  • Thread Starter thpani

    (@thpani)

    In particular, the mpay callback setting STATUS to CREDITED contains a PRICE field. This could be used to call wc_create_refund with the appropriate amount.

Viewing 1 replies (of 1 total)

The topic ‘Partial refunds’ is closed to new replies.