Title: Partial refunds
Last modified: August 31, 2016

---

# Partial refunds

 *  [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/partial-refunds-2/)
 * 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/](https://wordpress.org/plugins/woocommerce-mpay24-gateway/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [thpani](https://wordpress.org/support/users/thpani/)
 * (@thpani)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/partial-refunds-2/#post-6938412)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-mpay24-gateway_ced7e7.
   svg)
 * [WooCommerce mPAY24 Gateway](https://wordpress.org/plugins/woocommerce-mpay24-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-mpay24-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-mpay24-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-mpay24-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-mpay24-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-mpay24-gateway/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [thpani](https://wordpress.org/support/users/thpani/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/partial-refunds-2/#post-6938412)
 * Status: not resolved