Skip to content

Commit 24ef194

Browse files
committed
feat: update default PayPal style to include disableMaxWidth
Change default PayPal style from {"height": "42"} to {"height": "50px", "disableMaxWidth": true} for better appearance and consistency. Updated in: - includes/admin/monei-paypal-settings.php (default value) - src/Gateways/PaymentMethods/WCGatewayMoneiPaypal.php (validation fallback)
1 parent c370b92 commit 24ef194

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/admin/monei-paypal-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
'title' => __( 'PayPal Style', 'monei' ),
5252
'type' => 'textarea',
5353
'description' => __( 'Configure in JSON format the style of the PayPal component. Documentation: ', 'monei' ) . '<a href="https://docs.monei.com/docs/monei-js/reference/#paypal-options" target="_blank">MONEI PayPal Style</a>',
54-
'default' => '{"height": "42"}',
54+
'default' => '{"height": "50px", "disableMaxWidth": true}',
5555
'css' => 'min-height: 80px;',
5656
),
5757
'title' => array(

src/Gateways/PaymentMethods/WCGatewayMoneiPaypal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function validate_paypal_style_field( $key, $value ) {
150150
json_last_error_msg()
151151
)
152152
);
153-
return $this->get_option( 'paypal_style', '{"height": "50px"}' );
153+
return $this->get_option( 'paypal_style', '{"height": "50px", "disableMaxWidth": true}' );
154154
}
155155

156156
return $value;

0 commit comments

Comments
 (0)