Skip to main content

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>
ParameterTypeRequiredDescription
data-pricecss selectorYesCSS 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-amountdecimalYesQuantity to be financed in cents. This field can be omitted if the data-price is used.
data-typeenumNoThe widget layout will change based on the selected value. The possible values are: product (by default) and cart.
data-option-legal-advicebooleanNoIndicates whether you should displaying the legal text after the widget. The default value is false.
data-option-primary-colorcss colorNoSet the background colour of the button and the border.
data-option-layoutenumNoYou can choose horizontal (which will change automatically if you don't have enough space) or vertical (by default).
data-option-default-instalmentsdecimalNoAllows you to configure the number of instalments that the widget will display by default.
data-option-border-productbooleanYesIndicates whether you should displaying the color border if the type is product. The default value is true.
data-option-alignenumNoIndicates widget alignment. Can be aligned at left or right. The default value is center.
data-option-customer-iddni/nie/nifNoIndicates if the customer has a preapproved credit.
data-option-max-amount-desiredbooleanNoChange 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>