From 3bdd88b68ea86f13896ea523c2c335fa5c91c718 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Thu, 7 Nov 2024 09:30:07 +0100 Subject: [PATCH] Modify notice string --- src/PaymentMethods/Applepay.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/PaymentMethods/Applepay.php b/src/PaymentMethods/Applepay.php index 328a8387..5955112f 100644 --- a/src/PaymentMethods/Applepay.php +++ b/src/PaymentMethods/Applepay.php @@ -30,14 +30,20 @@ protected function getConfig(): array public function getFormFields($generalFormFields): array { + + $checkout_page_id = wc_get_page_id( 'checkout' ); + $edit_checkout_page_link = get_edit_post_link( $checkout_page_id ); + $notice = [ 'notice' => [ - 'title' => - + 'title' => sprintf( + /* translators: Placeholder 1: link url */ __( - '

Important: The Cart & Express Checkout Smart Button Stylings may be controlled in the Editor on the Block Checkout configuration.

', + '

The appearance of the Apple Pay button can be controlled in the Checkout page editor.

', 'mollie-payments-for-woocommerce' ), + esc_url( $edit_checkout_page_link ) + ), 'type' => 'title', 'class' => 'notice notice-warning', 'css' => 'padding:20px;',