Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(payments): PAYPAL-1480 adding button settings to the page builder #2212

Merged
merged 1 commit into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix "incorrect value type" for anonymous reviews in Google Search Console [#2255]https://github.com/bigcommerce/cornerstone/pull/2255
- Reduce lodash usage [#2256]https://github.com/bigcommerce/cornerstone/pull/2256
- Bump stencil utils to 6.12.1: fix broken add to cart button [#2259]https://github.com/bigcommerce/cornerstone/pull/2259
- Add smart buttons attributes for various payment providers in Page builder [#2212]https://github.com/bigcommerce/cornerstone/pull/2212

## 6.5.0 (06-24-2022)
- Category icons do not appear in Search Form [#2221]https://github.com/bigcommerce/cornerstone/pull/2221
Expand Down
9 changes: 8 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"show_accept_klarna": false,
"show_product_details_tabs": true,
"show_product_reviews": true,
"show_quick_payment_buttons": false,
"show_custom_fields_tabs": false,
"show_product_weight": true,
"show_product_dimensions": false,
Expand Down Expand Up @@ -356,7 +357,13 @@
"checkout-paymentbuttons-paypal-color": "black",
"checkout-paymentbuttons-paypal-shape": "rect",
"checkout-paymentbuttons-paypal-size": "large",
"checkout-paymentbuttons-paypal-label": "pay"
"checkout-paymentbuttons-paypal-label": "pay",
"paymentbuttons-number-of-buttons": 1,
"googlepay-button-color": "black",
"afterpay-button-color": "black-mint",
"amazon-button-color": "Gold",
"masterpass-button-color": "black",
"paymentbuttons-provider-sorting": []
},
"read_only_files": [
"/assets/scss/components/citadel",
Expand Down
233 changes: 212 additions & 21 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,25 +905,6 @@
"force_reload": true,
"id": "show_accept_googlepay"
},
{
"type": "select",
"label": "i18n.ApplePayColor",
"id": "applePay-button",
"options": [
{
"value": "black",
"label": "i18n.BlackWhiteText"
},
{
"value": "white",
"label": "i18n.WhiteBlackText"
},
{
"value": "white-border",
"label": "i18n.WhiteBlackTextWithBorder"
}
]
},
{
"type": "checkbox",
"label": "i18n.ShowKlarna",
Expand Down Expand Up @@ -1495,6 +1476,12 @@
"label": "i18n.WishlistDropdownBackground",
"id": "dropdown--wishList-backgroundColor"
},
{
"type": "checkbox",
"label": "i18n.ShowQuickPaymentButtons",
"force_reload": true,
"id": "show_quick_payment_buttons"
},
{
"type": "heading",
"content": "i18n.NumberOfProductsDisplayed"
Expand Down Expand Up @@ -2834,6 +2821,79 @@
}
]
},
{
"type": "heading",
"content": "i18n.QuickPaymentButtons"
},
{
"type": "select",
"label": "i18n.NumberOfButtonsAlwaysVisible",
"force_reload": true,
"id": "paymentbuttons-number-of-buttons",
"options": [
{
"value": 1,
"label": "1"
},
{
"value": 2,
"label": "2"
}
]
},
{
"type": "sort",
"label": "i18n.ProviderSortingOrderLabel",
"id": "paymentbuttons-provider-sorting",
"force_reload": true,
"options": [
{
"value": "paypal",
"label": "i18n.PayPalProviderSortingLabel",
"enabledBy": "paypal"
},
{
"value": "paypal-credit",
"label": "i18n.PayPalCreditProviderSortingLabel",
"enabledBy": "paypal-credit"
},
{
"value": "paypal-venmo",
"label": "i18n.PayPalVenmoProviderSortingLabel",
"enabledBy": "paypal-venmo"
},
{
"value": "sepa",
"label": "i18n.PayPalSepaProviderSortingLabel",
"enabledBy": "sepa"
},
{
"value": "googlepay",
"label": "i18n.GooglepayProviderSortingLabel",
"enabledBy": "googlepay"
},
{
"value": "applepay",
"label": "i18n.ApplepayProviderSortingLabel",
"enabledBy": "applepay"
},
{
"value": "afterpay",
"label": "i18n.AfterpayProviderSortingLabel",
"enabledBy": "afterpay"
},
{
"value": "amazonpay",
"label": "i18n.AmazonProviderSortingLabel",
"enabledBy": "amazonpay"
},
{
"value": "masterpass",
"label": "i18n.MasterpassProviderSortingLabel",
"enabledBy": "masterpass"
}
]
},
{
"type": "heading",
"content": "i18n.PaypalAcceleratedCheckoutButton",
Expand Down Expand Up @@ -2895,12 +2955,14 @@
},
{
"type": "heading",
"content": "i18n.SmartPaypalButton"
"content": "i18n.SmartPaypalButton",
"enable": "payPalProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "paymentbuttons-paypal-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand Down Expand Up @@ -2929,6 +2991,7 @@
"type": "select",
"label": "i18n.ButtonShape",
"id": "paymentbuttons-paypal-shape",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2945,6 +3008,7 @@
"type": "select",
"label": "i18n.ButtonContent",
"id": "paymentbuttons-paypal-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2969,6 +3033,7 @@
"type": "select",
"label": "i18n.DisplayStyle",
"id": "paymentbuttons-paypal-layout",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2983,12 +3048,14 @@
},
{
"type": "heading",
"content": "i18n.CheckoutPayPalButton"
"content": "i18n.CheckoutPayPalButton",
"enable": "payPalProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "checkout-paymentbuttons-paypal-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand Down Expand Up @@ -3017,6 +3084,7 @@
"type": "select",
"label": "i18n.ButtonShape",
"id": "checkout-paymentbuttons-paypal-shape",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -3033,6 +3101,7 @@
"type": "select",
"label": "i18n.ButtonSize",
"id": "checkout-paymentbuttons-paypal-size",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -3053,6 +3122,7 @@
"type": "select",
"label": "i18n.ButtonContent",
"id": "checkout-paymentbuttons-paypal-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -3072,6 +3142,127 @@
"label": "i18n.PayPal"
}
]
},
{
"type": "heading",
"content": "i18n.GooglePaySettings",
"enable": "googleProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "googlepay-button-color",
"enable": "googleProvidersEnabled",
"options": [
{
"value": "black",
"label": "i18n.BlackWhiteText"
},
{
"value": "white",
"label": "i18n.WhiteBlackText"
}
]
},
{
"type": "heading",
"content": "i18n.ApplePaySettings",
"enable": "appleProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "applePay-button",
"enable": "appleProvidersEnabled",
"options": [
{
"value": "black",
"label": "i18n.BlackWhiteText"
},
{
"value": "white",
"label": "i18n.WhiteBlackText"
},
{
"value": "white-border",
"label": "i18n.WhiteBlackTextWithBorder"
}
]
},
{
"type": "heading",
"content": "i18n.AfterPaySettings",
"enable": "afterpayProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "afterpay-button-color",
"enable": "afterpayProvidersEnabled",
"options": [
{
"value": "black-mint",
"label": "i18n.BlackOnMintText"
},
{
"value": "mint-black",
"label": "i18n.MintOnBlackText"
},
{
"value": "white",
"label": "i18n.BlackWhiteText"
},
{
"value": "black",
"label": "i18n.WhiteBlackText"
}
]
},
{
"type": "heading",
"content": "i18n.AmazonSettings",
"enable": "amazonProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "amazon-button-color",
"enable": "amazonProvidersEnabled",
"options": [
{
"value": "Gold",
"label": "i18n.Gold"
},
{
"value": "LightGray",
"label": "i18n.LightGray"
},
{
"value": "DarkGray",
"label": "i18n.DarkGray"
}
]
},
{
"type": "heading",
"content": "i18n.MasterpassSettings",
"enable": "masterpassProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "masterpass-button-color",
"enable": "masterpassProvidersEnabled",
"options": [
{
"value": "black",
"label": "i18n.BlackWhiteText"
},
{
"value": "white",
"label": "i18n.WhiteBlackText"
}
]
}
]
},
Expand Down
Loading