From f500cdb54509e2f0d282ab6015f54e06b6427913 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Tue, 5 Nov 2024 11:49:53 +0100 Subject: [PATCH] Add notice for styling --- src/PaymentMethods/Applepay.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/PaymentMethods/Applepay.php b/src/PaymentMethods/Applepay.php index 226993aa..328a8387 100644 --- a/src/PaymentMethods/Applepay.php +++ b/src/PaymentMethods/Applepay.php @@ -30,6 +30,19 @@ protected function getConfig(): array public function getFormFields($generalFormFields): array { + $notice = [ + 'notice' => [ + 'title' => + + __( + '

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

', + 'mollie-payments-for-woocommerce' + ), + 'type' => 'title', + 'class' => 'notice notice-warning', + 'css' => 'padding:20px;', + ], + ]; $paymentMethodFormFieds = [ 'mollie_apple_pay_button_enabled_cart' => [ 'title' => __('Enable Apple Pay Button on Cart page', 'mollie-payments-for-woocommerce'), @@ -56,6 +69,6 @@ public function getFormFields($generalFormFields): array 'default' => 'no', ], ]; - return array_merge($generalFormFields, $paymentMethodFormFieds); + return array_merge($notice, $generalFormFields, $paymentMethodFormFieds); } }