Payment menu styling reference
On this page
The payment menu is the row of payment methods at the top of the payment screen at checkout, such as Cash and Card. Operators tap a payment method to choose how the customer pays. You can change the colors and corners of the payment methods, the space around and between them, the text of a chosen payment method’s details, such as a voucher code, etc. Follow the POS styling API rules when you style the payment menu.
Where the payment menu appears
The payment menu appears on the payment screen at checkout, above the amount. The payment menu has a button for each payment method set up for the register, as many as fit in the row. The other payment methods are behind a button at the end of the row, which opens a list of them.
Some payment methods need more than an amount, such as a voucher, a gift card, store credit, or a finance promotion. While an operator enters the details for one of these, a row with the same parts replaces the payment menu. The row shows the chosen payment method, then the details it uses, such as the voucher code, with the other payment methods behind the button at the end. CSS you write for the payment menu also styles this row.
Each payment method in the payment menu, and the details of the chosen payment method, is a menu button. The button at the end of the row is a button. You can also style them with the menu button and button properties.
Parts
| Part | What it is | Available from |
|---|---|---|
payment-menu-root |
The whole row, with the space around and between the buttons. | v22.0.19 |
payment-menu-button |
One payment method, such as Cash or Card, in the row or in the list of more payment methods, and the chosen payment method while the amount is entered. It is a menu button, so it reads the menu button properties. | v22.0.19 |
payment-menu-details |
What the chosen payment method uses, such as a voucher’s code, a gift card’s last four digits and balance, or the store credit available, beside the chosen payment method while the amount is entered. It is a menu button, so it reads the menu button properties. | v22.0.19 |
payment-menu-more-button |
The button at the end of the row that opens the list of the payment methods that don’t fit. It is a Button, so it reads the Button properties. | v22.0.19 |
The Available from column shows the first release that carries the name.
Component properties
The payment menu has none of its own. Style the parts directly, or set the menu button and button properties on them.
Examples
Each example is tested against the POS on every change.
“Give the payment methods our brand color.”
```css
[part~=’payment-menu-button’] { –sc-menu-button-bg: #0b5394; –sc-menu-button-color: #ffffff; } ```
“Make the payment methods’ corners squarer.”
```css
[part~=’payment-menu-button’] { border-radius: 8px; } ```
“Tighten the space around and between the payment methods.”
```css
[part~=’payment-menu-root’] { gap: 8px; padding: 8px; } ```
“Make what the chosen payment method uses bolder.”
```css
[part~=’payment-menu-details’] { font-weight: 700; } ```
“Give the button for more payment methods our brand color.”
```css
[part~=’payment-menu-more-button’] { –sc-button-bg: #0b5394; –sc-button-color: #ffffff; } ```
What can’t be styled yet
- One payment method on its own, such as Cash, since no payment method has a name yet
- The chosen payment method, apart from the others: a fill you set on the payment methods also replaces the fill the chosen one takes
- The list of more payment methods that the button at the end opens
- How the row lays out while the amount for a payment method is entered: the POS sets the columns on the row itself, so a store’s rule for the layout doesn’t reach it
Retired
None yet.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.