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.
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.
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.
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:
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:
vertical, you can not have a button size of small.vertical, you can not customize the branding of the button.vertical, you can not customize the tagline of the button.vertical, you can not customize the funding icons settings.