Skip to content

Commit

Permalink
feat(payment): PAYPAL-886 added container setting for spb container (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andriiVitvitskyi1990 authored Jul 22, 2021
1 parent 2878672 commit 6a683ae
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 54 deletions.
4 changes: 1 addition & 3 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,17 +327,15 @@
"paymentbuttons-paypal-layout": "vertical",
"paymentbuttons-paypal-color": "gold",
"paymentbuttons-paypal-shape": "rect",
"paymentbuttons-paypal-size": "responsive",
"paymentbuttons-paypal-label": "checkout",
"paymentbuttons-paypal-tagline": false,
"paymentbuttons-paypal-fundingicons": false,
"paymentbanners-homepage-color": "white",
"paymentbanners-homepage-ratio": "8x1",
"paymentbanners-cartpage-text-color": "black",
"paymentbanners-cartpage-logo-position": "left",
"paymentbanners-cartpage-logo-type": "primary",
"paymentbanners-proddetailspage-color": "white",
"paymentbanners-proddetailspage-ratio": "8x1",
"paymentbuttons-container": "medium",
"supported_card_type_icons": [
"american_express",
"diners",
Expand Down
54 changes: 23 additions & 31 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2820,16 +2820,32 @@
"enable": "smartButtons",
"settings": [
{
"type": "checkbox",
"label": "i18n.ShowPayPalTagline",
"force_reload": true,
"id": "paymentbuttons-paypal-tagline"
"type": "heading",
"content": "i18n.PaymentButtonsContainer"
},
{
"type": "checkbox",
"label": "i18n.ShowFundingIcons",
"type": "select",
"label": "i18n.ButtonContainer",
"force_reload": true,
"id": "paymentbuttons-paypal-fundingicons"
"id": "paymentbuttons-container",
"options": [
{
"value": "small",
"label": "Small"
},
{
"value": "medium",
"label": "Medium"
},
{
"value": "large",
"label": "Large"
}
]
},
{
"type": "heading",
"content": "i18n.SmartPaypalButton"
},
{
"type": "select",
Expand Down Expand Up @@ -2875,30 +2891,6 @@
}
]
},
{
"type": "select",
"label": "i18n.ButtonSize",
"id": "paymentbuttons-paypal-size",
"force_reload": true,
"options": [
{
"value": "small",
"label": "i18n.Small"
},
{
"value": "medium",
"label": "i18n.Medium"
},
{
"value": "large",
"label": "i18n.Large"
},
{
"value": "responsive",
"label": "i18n.Responsive"
}
]
},
{
"type": "select",
"label": "i18n.ButtonContent",
Expand Down
28 changes: 8 additions & 20 deletions schemaTranslations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1874,19 +1874,8 @@
"uk": "Кнопки оплати",
"zh": "支付按钮"
},
"i18n.ShowPayPalTagline": {
"default": "Show PayPal tagline",
"fr": "Afficher le slogan de PayPal",
"it": "Mostra tagline PayPal",
"uk": "Показати лінію оплати PayPal",
"zh": "展示 PayPal标签行"
},
"i18n.ShowFundingIcons": {
"default": "Show funding icons",
"fr": "Afficher les icônes de financement",
"it": "Mostra icone finanziamento",
"uk": "Показати піктограми фінансування",
"zh": "展示资金图标"
"i18n.ButtonContainer": {
"default": "Button Container"
},
"i18n.ButtonColor": {
"default": "Button color",
Expand Down Expand Up @@ -1961,20 +1950,16 @@
"uk": "Великий",
"zh": ""
},
"i18n.Responsive": {
"default": "Responsive",
"fr": "Responsive",
"it": "Responsive",
"uk": "Чуйний",
"zh": "响应式"
},
"i18n.ButtonContent": {
"default": "Button content",
"fr": "Contenu du bouton",
"it": "Contenuto bottone",
"uk": "Зміст кнопки",
"zh": "按钮内容"
},
"i18n.SmartPaypalButton": {
"default": "Smart Paypal Button"
},
"i18n.PayPalCheckout": {
"default": "PayPal Checkout",
"fr": "Checkout de PayPal",
Expand Down Expand Up @@ -2088,5 +2073,8 @@
},
"i18n.BannersMessaging": {
"default": "Please note that in order for the changes to apply, you need navigate to the PayPal Settings in BC Control Panel, disable an appropriate messaging banner(s), click \"Save\" button, enable the banner again and click \"Save\" button again"
},
"i18n.PaymentButtonsContainer": {
"default": "Buttons Container Size"
}
}

0 comments on commit 6a683ae

Please sign in to comment.