diff --git a/view/frontend/web/js/view/payment/method-renderer/creditcards.js b/view/frontend/web/js/view/payment/method-renderer/creditcards.js index 81f24cb73..df39bc0fe 100644 --- a/view/frontend/web/js/view/payment/method-renderer/creditcards.js +++ b/view/frontend/web/js/view/payment/method-renderer/creditcards.js @@ -77,7 +77,7 @@ define( // Check for error field in response if (response.error) { // Display the error message in the observable - this.oauthTokenError("Error getting OAuth token."); + this.oauthTokenError("An error occurred, please try another payment method or try again later."); } else { const accessToken = response.data.access_token; const issuers = response.data.issuers; @@ -86,7 +86,7 @@ define( } } catch (error) { // Catch any other errors (e.g., network issues) - this.oauthTokenError("Error getting OAuth token."); + this.oauthTokenError("An error occurred, please try another payment method or try again later."); } }, @@ -132,7 +132,7 @@ define( let disabled = !sdkClient.formIsValid(); payButton.disabled = disabled; if (disabled) { - payButton.style.backgroundColor = "#ff5555"; + payButton.style.backgroundColor = ""; payButton.style.cursor = "not-allowed"; payButton.style.opacity = "0.5"; } else { @@ -148,8 +148,8 @@ define( let cardLogoStyling = { height:"80%", position: 'absolute', - border: '1px soli gray', - radius: '5px', + border: '1px solid #d6d6d6', + borderRadius: "4px", opacity:'1', transition:'all 0.3s ease', right:'5px', @@ -159,11 +159,18 @@ define( // Define styling and mount hosted fields as needed... let styling = { fontSize: "14px", - fontFamily: 'Consolas, Liberation Mono, Menlo, Courier, monospace', + fontStyle: "normal", + fontWeight: 400, + fontFamily: 'Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif', textAlign: 'left', - background: 'inherit', - color: 'black', - placeholderColor: 'grey', + background: '#fefefe', + color: '#333333', + placeholderColor: '#888888', + borderRadius: '5px', + padding: '8px 10px', + boxShadow: 'none', + transition: 'border-color 0.2s ease, box-shadow 0.2s ease', + border: '1px solid #d6d6d6', cardLogoStyling: cardLogoStyling }; diff --git a/view/frontend/web/template/payment/buckaroo_magento2_creditcards.html b/view/frontend/web/template/payment/buckaroo_magento2_creditcards.html index babcc987c..7bc7be80f 100644 --- a/view/frontend/web/template/payment/buckaroo_magento2_creditcards.html +++ b/view/frontend/web/template/payment/buckaroo_magento2_creditcards.html @@ -8,13 +8,13 @@ data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
- +
@@ -23,79 +23,82 @@
- +
-
-
- -
-
-

+
+ +
+

+
-
- -
-
-

+
+ +
+

+
-
-
-
- -
-
-

+
+
+
+ +
-
- -
-
-

+

+
+
+ +
+

+
-
- -
+
+ +
-
-
+
+
-
- - - Cancel - -
+
+ + + Cancel + +
- +