Configuring Wallet Buttons
Familiarity with Stencil development
The file structure of each theme can be unique; therefore, some knowledge of Stencil development may be required to render wallet buttons. The examples in this article use the Cornerstone theme.
This article explains how to add wallet buttons to the Product Detail Page, or PDP. Cornerstone 6.7.0+ supports wallet buttons by default; however, you can upgrade older themes to support wallet buttons by following the steps outlined in this article.
Wallet button availability
Wallet buttons are always available to the customer except in the following cases:
- The product details form is invalid.
- The product is not purchasable.
Adding wallet buttons
By default, wallet buttons are not enabled on the PDP. To add wallet buttons, you must first prepare your theme by adding a checkbox to Page Builder. The checkbox allows the merchant to control the display of wallet buttons on the PDP on your store. Perform the following steps to add the checkbox:
- In
config.json, add ashow_quick_payment_buttonsproperty and provide a default value.
Setting a default value
To turn on this feature by default, set "show_quick_payment_buttons": true.
- To create a checkbox for the merchant to toggle the feature on and off in Page Builder, add the following code to the Products section of
schema.json:
In Page Builder, the checkbox appears as follows:

Setting quantity of wallet buttons
To set the number of wallet buttons visible on the product page, perform the following steps:
- In
config.json, add apaymentbuttons-number-of-buttonsproperty and provide a default value.
Default number of buttons
If the paymentbuttons-number-of-buttons property is not defined, only one button will be shown. The customer will have access to any other buttons by clicking More payment options.
- To add a Page Builder dialog for the merchant to configure the number of visible wallet buttons, add the following code to the Payments section of
schema.json:
In Page Builder, the dialog appears as follows:

Sorting wallet buttons
Adding a sorting features allows merchants to choose the order in which wallet buttons appear to shoppers. To add a sorting feature, perform the following steps:
- In
config.json, add apaymentbuttons-provider-sortingproperty and provide a default value.
- To add the sorting component to the wallet buttons Page Builder dialog, add the following code to the Payments section of
schema.json:
Adding “heading” for a section can be skipped if it was added before.
In Page Builder, the dialog appears as follows:

Adding wallet buttons to theme markup
To render wallet buttons, you must perform the preceding steps described in this article. Add wallet buttons, set the quantity of buttons, and sort the buttons as desired, then insert the following code underneath the Add to Cart button on the PDP.
Additional steps may be required depending on your theme’s setup.
The wallet buttons appear on the PDP as follows:

For Cornerstone themes below version 6.7
In themes below version 6.7, you need to perform another step to make wallet buttons work as expected. After you enter the preceding code snippet, insert the following code into your theme markup: