Skip to content

Commit

Permalink
feat(payment): PAYPAL-2039 added color configs to payment buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-dronov committed May 24, 2023
1 parent f84ab0e commit 8512e5e
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 12 deletions.
15 changes: 14 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,22 @@
"pdp-retail-price-label": "",
"pdp-custom-fields-tab-label": "",
"paymentbuttons-paypal-product-details-page-color": "gold",
"paymentbuttons-paylater-product-details-page-color": "gold",
"paymentbuttons-venmo-product-details-page-color": "blue",
"paymentbuttons-paypal-cart-page-add-cart-color": "gold",
"paymentbuttons-paylater-cart-page-add-cart-color": "gold",
"paymentbuttons-venmo-cart-page-add-cart-color": "blue",
"paymentbuttons-paypal-checkout-on-top-color": "gold",
"paymentbuttons-paypal-checkout-in-payment-color": "gold",
"paymentbuttons-paylater-checkout-on-top-color": "gold",
"paymentbuttons-venmo-checkout-on-top-color": "blue",
"paymentbuttons-paypal-checkout-payment-color": "gold",
"paymentbuttons-paylater-checkout-payment-color": "gold",
"paymentbuttons-venmo-checkout-payment-color": "blue",
"paymentbuttons-paypal-checkout-payment-label": "checkout",
"paymentbuttons-paypal-checkout-on-top-payment-label": "checkout",
"paymentbuttons-paypal-cart-page-add-cart-label": "checkout",
"paymentbuttons-paypal-product-details-page-label": "checkout",
"paymentbuttons-paypal-checkout-payment-size": "medium",
"paymentbuttons-paypal-color": "gold",
"paymentbuttons-paypal-shape": "rect",
"paymentbuttons-paypal-label": "checkout",
Expand Down
320 changes: 313 additions & 7 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2787,11 +2787,12 @@
"settings": [
{
"type": "heading",
"content": "i18n.ProductDetailsPage"
"content": "i18n.ProductDetailsPage",
"enable": "payPalProvidersEnabled"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"label": "i18n.PayPalButtonColor",
"id": "paymentbuttons-paypal-product-details-page-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
Expand All @@ -2818,13 +2819,84 @@
}
]
},
{
"type": "select",
"label": "i18n.PayLaterButtonColor",
"id": "paymentbuttons-paylater-product-details-page-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "gold",
"label": "i18n.Gold"
},
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "silver",
"label": "i18n.Silver"
},
{
"value": "black",
"label": "i18n.Black"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.VenmoButtonColor",
"id": "paymentbuttons-venmo-product-details-page-color",
"enable": "venmoProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.ButtonContent",
"id": "paymentbuttons-paypal-product-details-page-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "checkout",
"label": "i18n.PayPalCheckout"
},
{
"value": "pay",
"label": "i18n.PayWithPayPal"
},
{
"value": "buynow",
"label": "i18n.BuyNow"
},
{
"value": "paypal",
"label": "i18n.PayPal"
}
]
},
{
"type": "heading",
"content": "i18n.CartPageAddToCart"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"label": "i18n.PayPalButtonColor",
"id": "paymentbuttons-paypal-cart-page-add-cart-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
Expand All @@ -2851,13 +2923,84 @@
}
]
},
{
"type": "select",
"label": "i18n.PayLaterButtonColor",
"id": "paymentbuttons-paylater-cart-page-add-cart-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "gold",
"label": "i18n.Gold"
},
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "silver",
"label": "i18n.Silver"
},
{
"value": "black",
"label": "i18n.Black"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.VenmoButtonColor",
"id": "paymentbuttons-venmo-cart-page-add-cart-color",
"enable": "venmoProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.ButtonContent",
"id": "paymentbuttons-paypal-cart-page-add-cart-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "checkout",
"label": "i18n.PayPalCheckout"
},
{
"value": "pay",
"label": "i18n.PayWithPayPal"
},
{
"value": "buynow",
"label": "i18n.BuyNow"
},
{
"value": "paypal",
"label": "i18n.PayPal"
}
]
},
{
"type": "heading",
"content": "i18n.CheckoutOnTop"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"label": "i18n.PayPalButtonColor",
"id": "paymentbuttons-paypal-checkout-on-top-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
Expand All @@ -2884,14 +3027,114 @@
}
]
},
{
"type": "select",
"label": "i18n.PayLaterButtonColor",
"id": "paymentbuttons-paylater-checkout-on-top-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "gold",
"label": "i18n.Gold"
},
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "silver",
"label": "i18n.Silver"
},
{
"value": "black",
"label": "i18n.Black"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.VenmoButtonColor",
"id": "paymentbuttons-venmo-checkout-on-top-color",
"enable": "venmoProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.ButtonContent",
"id": "paymentbuttons-paypal-checkout-on-top-payment-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "checkout",
"label": "i18n.PayPalCheckout"
},
{
"value": "pay",
"label": "i18n.PayWithPayPal"
},
{
"value": "buynow",
"label": "i18n.BuyNow"
},
{
"value": "paypal",
"label": "i18n.PayPal"
}
]
},
{
"type": "heading",
"content": "i18n.CheckoutInPayment"
"content": "i18n.CheckoutPayment"
},
{
"type": "select",
"label": "i18n.ButtonColor",
"id": "paymentbuttons-paypal-checkout-in-payment-color",
"label": "i18n.PayPalButtonColor",
"id": "paymentbuttons-paypal-checkout-payment-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "gold",
"label": "i18n.Gold"
},
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "silver",
"label": "i18n.Silver"
},
{
"value": "black",
"label": "i18n.Black"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.PayLaterButtonColor",
"id": "paymentbuttons-paylater-checkout-payment-color",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
Expand All @@ -2917,6 +3160,69 @@
}
]
},
{
"type": "select",
"label": "i18n.VenmoButtonColor",
"id": "paymentbuttons-venmo-checkout-payment-color",
"enable": "venmoProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "blue",
"label": "i18n.Blue"
},
{
"value": "white",
"label": "i18n.White"
}
]
},
{
"type": "select",
"label": "i18n.ButtonContent",
"id": "paymentbuttons-paypal-checkout-payment-label",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "checkout",
"label": "i18n.PayPalCheckout"
},
{
"value": "pay",
"label": "i18n.PayWithPayPal"
},
{
"value": "buynow",
"label": "i18n.BuyNow"
},
{
"value": "paypal",
"label": "i18n.PayPal"
}
]
},
{
"type": "select",
"label": "i18n.ButtonSize",
"id": "paymentbuttons-paypal-checkout-payment-size",
"enable": "payPalProvidersEnabled",
"force_reload": true,
"options": [
{
"value": "small",
"label": "i18n.Small"
},
{
"value": "medium",
"label": "i18n.Medium"
},
{
"value": "large",
"label": "i18n.Large"
}
]
},
{
"type": "heading",
"content": "i18n.PaymentButtonsContainer"
Expand Down
Loading

0 comments on commit 8512e5e

Please sign in to comment.