Skip to content

Commit

Permalink
feat(payments): PAYPAL-1345 adding button settings to the page builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-fetisov committed Sep 6, 2022
1 parent 77a1b01 commit bc88da3
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 39 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed escaping on created store account confirm message. [#2248]https://github.com/bigcommerce/cornerstone/pull/2248
- Pass theme settings from blog page to blog post template. [#2253]https://github.com/bigcommerce/cornerstone/pull/2253
- Bump jQuery to 3.6.1. [#2250](https://github.com/bigcommerce/cornerstone/issues/2250)
- 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 @@ -352,7 +353,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
234 changes: 213 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 @@ -2836,12 +2823,88 @@
},
{
"type": "heading",
"content": "i18n.SmartPaypalButton"
"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",
"enable": "payPalProvidersEnabled",
"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.SmartPaypalButton",
"enable": "payPalProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "paymentbuttons-paypal-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand Down Expand Up @@ -2870,6 +2933,7 @@
"type": "select",
"label": "i18n.ButtonShape",
"id": "paymentbuttons-paypal-shape",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2886,6 +2950,7 @@
"type": "select",
"label": "i18n.ButtonContent",
"id": "paymentbuttons-paypal-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2910,6 +2975,7 @@
"type": "select",
"label": "i18n.DisplayStyle",
"id": "paymentbuttons-paypal-layout",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2924,12 +2990,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 @@ -2958,6 +3026,7 @@
"type": "select",
"label": "i18n.ButtonShape",
"id": "checkout-paymentbuttons-paypal-shape",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2974,6 +3043,7 @@
"type": "select",
"label": "i18n.ButtonSize",
"id": "checkout-paymentbuttons-paypal-size",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -2994,6 +3064,7 @@
"type": "select",
"label": "i18n.ButtonContent",
"id": "checkout-paymentbuttons-paypal-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
Expand All @@ -3013,6 +3084,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

0 comments on commit bc88da3

Please sign in to comment.