fix REFUND_CAPTURE_CURRENCY_MISMATCH

This commit is contained in:
Oscar Gare 2021-08-17 12:06:49 +02:00
parent 44aecb698e
commit 852fbe9f54

View file

@ -88,7 +88,7 @@ class RefundProcessor {
$capture->invoice_id(),
$reason,
new Amount(
new Money( $amount, get_woocommerce_currency() )
new Money( $amount, $wc_order->get_currency() )
)
);
return $this->payments_endpoint->refund( $refund );