Widget v4
Integration
There is the possibility of integrating a new version of the widget, for this, you must assign the value "v4" to the HTML attribute: data-aplazame-widget-instalments="v4"
<div
data-aplazame-widget-instalments="v4"
data-amount="3900">
</div>
This version aims to simplify the integration for the installment payment widget. It has two layouts: product and cart and two positions horizontal y vertical.
note
The default values in this case are those shown in this documentation.
Note that when you change the values in the form it will be updated in the sample code.
<div data-aplazame-widget-instalments="v4"
data-amount="3900"
data-type="product"
data-option-legal-advice="false"
data-option-primary-color="#334bff"
data-option-layout="vertical"
data-option-default-instalments="6"
data-option-border-product="true"
data-option-align="center"
data-option-customer-id="02667776Y"
data-option-max-amount-desired="false"></div>
| Parameter | Type | Required | Description |
|---|---|---|---|
| data-price | css selector | Yes | CSS selector that indicates the element that contains the final price. It is updated live if there are changes in the price. If used in conjunction with data-amount, the value of the latter and data-price will be shown if the price changes. |
| data-amount | decimal | Yes | Quantity to be financed in cents. This field can be omitted if the data-price is used. |
| data-type | enum | No | The widget layout will change based on the selected value. The possible values are: product (by default) and cart. |
| data-option-legal-advice | boolean | No | Indicates whether you should displaying the legal text after the widget. The default value is false. |
| data-option-primary-color | css color | No | Set the background colour of the button and the border. |
| data-option-layout | enum | No | You can choose horizontal (which will change automatically if you don't have enough space) or vertical (by default). |
| data-option-default-instalments | decimal | No | Allows you to configure the number of instalments that the widget will display by default. |
| data-option-border-product | boolean | Yes | Indicates whether you should displaying the color border if the type is product. The default value is true. |
| data-option-align | enum | No | Indicates widget alignment. Can be aligned at left or right. The default value is center. |
| data-option-customer-id | dni/nie/nif | No | Indicates if the customer has a preapproved credit. |
| data-option-max-amount-desired | boolean | No | Change the widget to allow the user to manually enter the maximum instalment they want to pay, or the closest. The default value is false. |
tip
If you want to configure the widget according to your requirements you can use the configurator and decide which values you want to apply and with what look and feel.
- Configure the different parameters according to your requirements. Apply the colours you want, choose the alignment and decide whether you want your widget to show the legal text.
Configurator
<div
data-aplazame-widget-instalments="v4"
data-country="ES"
data-amount="14900"
data-type="product"
data-option-primary-color="#334BFF"
data-option-align="center"
data-option-border-product="true"
data-option-layout="horizontal"
data-option-max-amount-desired="false"
></div>