Skip to content

Commit

Permalink
Add notice for styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Nov 5, 2024
1 parent 836e2a9 commit f500cdb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/PaymentMethods/Applepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ protected function getConfig(): array

public function getFormFields($generalFormFields): array
{
$notice = [
'notice' => [
'title' =>

__(
'<p>Important: The Cart & Express Checkout Smart Button Stylings may be controlled in the Editor on the Block Checkout configuration.</p>',
'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'),
Expand All @@ -56,6 +69,6 @@ public function getFormFields($generalFormFields): array
'default' => 'no',
],
];
return array_merge($generalFormFields, $paymentMethodFormFieds);
return array_merge($notice, $generalFormFields, $paymentMethodFormFieds);
}
}

0 comments on commit f500cdb

Please sign in to comment.