directa24object with your API Key
<script>tag to the HTML Header:
directa24is created on the window.
paramswith all the required and optional fields you want to send as follows:
[ES, EN, PT]
fontinside the object
fontobject you can modify any attribute, such as the color, weight, etc.
<div>with the class
container, you can modify or add styles to the div by adding the property
containerinside the object
containerobject you can modify any other attribute.
spinnerinside the object
spinnerobject you can modify any other attribute.
continueBtninside the object
stylesand to modify the "Go Back" button use the property
gridItemBoxallows to customize the container of each payment method
gridItemCheckIconallows to customize how the payment method looks like when it was selected by the customer
gtidItemLabelallows to customize the label of each payment method
stepsItemsallows to change the style of all the titles
stepsItemsActiveallows to change the style of the active title
initfunction to create and render the payment page.
initfunction is composed by the following parameters:
COMBOformat or in
GRIDformat. If an invalid value is sent, it defaults to GRID.
loadPaymentFormparameter, is an optional and boolean value
[true, false]that specifies whether the payment method specified can or can't be changed by the customer.
true, the user will be redirected straight to the page to complete the payment details. If
false, the customer will be prompted to select a payment method, with the payment method specified pre-selected by default.
<div>with id 'main'.