Skip to content

Commit

Permalink
Code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
inpsyde-maticluznar committed Oct 26, 2023
1 parent 69ed8f7 commit 7fc1156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payment/PaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ protected function reportPaymentCreationFailure($orderId, $e, $paymentMethodId):
$message .= 'hii ' . $e->getMessage();
}

add_action('before_woocommerce_pay_form', function() use($message){
add_action('before_woocommerce_pay_form', static function () use ($message) {
wc_print_notice($message, 'error');
});
}
Expand Down

0 comments on commit 7fc1156

Please sign in to comment.