1 parent 8627aaa commit d0e95ddCopy full SHA for d0e95dd
1 file changed
src/Plugin.php
@@ -1148,6 +1148,9 @@ public static function create_refund( Refund $refund ) {
1148
1149
$refunded_amount = $payment->get_refunded_amount();
1150
1151
+ // Prevent the default Money currency (EUR) from leaking into the refunded amount for non-EUR payments.
1152
+ $refunded_amount->set_currency( $payment->get_total_amount()->get_currency() );
1153
+
1154
$refunded_amount = $refunded_amount->add( $refund->get_amount() );
1155
1156
$payment->set_refunded_amount( $refunded_amount );
0 commit comments