Payment widget
Overview
The payment widget shows a suitable payment method for a given amount. Based on the parameters you provide, the widget picks the most suitable payment method.
If no suitable payment method is available, the widget is empty.
Style example: Normal
HTML
<div class="qliro-widget" data-amount="200" data-condensed></div>
<div class="qliro-widget" data-amount="200"></div>CSS
.qliro-widget {}Result

How to
To use the payment widget, add a div with the class qliro-widget and the data attributes you need. The widgets script fills the div when the script loads, or when you call window._qliroWidgets().
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| class | String | Must include qliro-widget. | required |
| data-amount | Number | Price of the order or product. Qliro uses it to pick the most suitable payment option. | required |
| data-condensed | Boolean | If set, the widget renders with shorter copy. |
Example
<div class="qliro-widget" data-amount="1000" data-condensed></div>Styling
Override these CSS classes to change the default look of the payment widget.
CSS classes
| CSS Classes |
|---|
.qliro-widget |
.qliro-widget-condensed |
.qliro-widget-logotype |
.qliro-widget-condensed-logotype |
.qliro-widget > p > span |
.qliro-condensed-widget > p > span |