Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/MOL-808' into release/7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
inpsyde-maticluznar committed Oct 26, 2023
2 parents 71b2253 + 7fc1156 commit 760a501
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Payment/PaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,9 @@ protected function reportPaymentCreationFailure($orderId, $e, $paymentMethodId):
$message .= 'hii ' . $e->getMessage();
}

$this->notice->addNotice('error', $message);
add_action('before_woocommerce_pay_form', static function () use ($message) {
wc_print_notice($message, 'error');
});
}

/**
Expand Down

0 comments on commit 760a501

Please sign in to comment.