krokedil / paysoncheckout-for-woocommerce

Provides a PaysonCheckout 2.0 payment gateway for WooCommerce.
5 stars 5 forks source link

Detect when requested refunds don't match up #115

Closed fredrik-krokedil closed 2 years ago

fredrik-krokedil commented 2 years ago

This does not solve https://app.clickup.com/t/1jnpecx

It will, however, let the webshop know when it happens and not mark the refund as successful.

Note that this has not been confirmed yet, as I can't reproduce the problem. Needs extensive testing to try and reproduce the problem.

fredrik-krokedil commented 2 years ago

Discussed this with Michael, and we agreed that the full refund and partial refund do essentially the same thing. Instead of duplicating the check for matching totals into the full refund code, all refunds now use the same code, and the method was renamed to reflect this.