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
bc-alexsaiannyi authored and andriiVitvitskyi1990 committed Jul 1, 2021
1 parent 39febbf commit 53eb813
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 51 deletions.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
"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 53eb813

Please sign in to comment.