twisto-checkout-widget
Checkout widget for payment selection.
Step 1: Add this script to the page ⬇️
<script src="https://cdn.twistopay.com/widget/twisto-widget.js" async></script>Step 2: Insert the widget where you want it to appear ⬇️
Pay in 30 days:
<twisto-checkout-widget
product="pay-in-30-days"
language="en"
></twisto-checkout-widget>Pay in 3 — requires amount and currency:
<twisto-checkout-widget
product="pay-in-3"
amount="AMOUNT"
currency="CZK"
language="en"
></twisto-checkout-widget>Always pass the product price to amount.
Attributes
| Attribute | Description | Type | Default value |
|---|---|---|---|
| product | Twisto product. Must be: pay-in-30-days or pay-in-3. | String | null |
| language | Language. Options: cs, en or pl. | String | en |
| theme | Theme. Options: light or dark. | String | light |
| site | Redirect target. Can be cz or pl. | String | null |
| width | Widget width. Options: auto or full. | String | auto |
| amount | Product price. Required for pay-in-3. | Number | null |
| currency | Currency. Required for pay-in-3. For example, CZK, EUR, PLN, etc. | String | null |
For a full list of available attributes, see How to edit Twisto widgets.
Examples
Pay in 30 days
<twisto-checkout-widget product="pay-in-30-days" language="en"></twisto-checkout-widget>Pay in 3
<twisto-checkout-widget
product="pay-in-3"
amount="2000"
currency="CZK"
language="en"
></twisto-checkout-widget>