PayPal Smart Buttons
PayPal Smart Buttons are available on Cornerstone versions 2.6.0+ for merchants who have PayPal powered by Braintree or PayPal Express Checkout enabled on their store.
Theme developers can enable Smart Buttons on a custom Stencil theme by adding the required settings to the config.json file.
Merchants will have the ability to customize some style aspects of the PayPal payment buttons at checkout using Page Builder for stores that have PayPal powered by Braintree or PayPal Express Checkout enabled. To make PayPal Smart Buttons customizable with Page Builder, a theme developer will need to make its customization properties available by adding its schema to the schema.json file.
Enable Smart Buttons on Your Stencil Theme
Smart Buttons are included on Cornerstone versions 2.6.0+. If your theme does not already include Smart Buttons, append the paymentbuttons settings to the Settings object within your config.json file. See the code sample below.
Page Builder Customization
Adding the above keys to the config.json file will enable Smart Buttons on a Stencil theme, however, the merchant will not be able to customize button styles with Page Builder unless setting configurations are added to the schema.json file.
Enabling Smart Buttons Customization via Page Builder
Merchants who enable PayPal powered by Braintree and PayPal Express Checkout can also customize PayPal Smart Buttons via Page Builder. As a theme developer, you can enable PayPal Smart Buttons customization via Page Builder, by appending the following object to the schema.json file:
Mutually exclusive options
Some customization options are mutually exclusive, meaning when used in combination with other customization options, the smart button will completely fail to render on the page.
All mutually exclusive options are tied to the layout setting vertical. If your layout setting is vertical, take note of the following customization restrictions:
- If you have a layout setting of
vertical, you can not have a button size ofsmall. - If you have a layout setting of
vertical, you can not customize thebrandingof the button. - If you have a layout setting of
vertical, you can not customize thetaglineof the button. - If you have a layout setting of
vertical, you can not customize thefunding iconssettings.
Resources
Related Articles
- PayPal Checkout Customization (PayPal)