Closed dominic-p closed 8 years ago
v2.1.2 fixes the undefined method problem. Leaving the issue open in regards to your second suggestion.
I looked into this today and unfortunately the way WooCommerce has implemented the refund feature, it assumes the gateway supports partial refunds (https://docs.woothemes.com/wc-apidocs/source-class-WC_Payment_Gateway.html#234-247).
We do not support partial refunds via the orders API so we can't support the automated payment refund functionality (unless the gateway API key is authorized for unrestricted debits on the account, which is not something we want to encourage).
Thanks for looking into that. Maybe it would be worth opening an issue on the WooCommerce repo to see what the devs think about allowing gateways to support full refunds only?
You might also want to look into the new payment refund functionality introduced in WC 2.2.