
kushki-checkout.js script in your payment page by adding it to the <head> of your HTML file. Always load kushki-checkout directly from cdn.kushkipagos.com. Do not include the script in a bundle or package or host a copy of it.<body>, where you want the payment form to be displayed.action form according to the corresponding endpoint in your back-end.script tag.script tag at the end of the <body> of your payment page.Kushki objecttype, the available months and the months of grace, as shown in the following example response. To execute the charge you should use only months. {
type: "all",
months: ["2", "3", "4", "5", "6", "7"],
monthsOfGrace: []
}deferred.deferred object or in the months parameter when you start the payment process with Kushki.<script> tag inside the <body> tag. Once imported, you will be able to access the resources described below to create a payment flow with Kushki.kushki.min.js (which brings the necessary code to store your merchant's credentials) and card.min.js (the module that brings the necessary functionalities for the flow with card payments).KushkiOptionsKushkiOptions which allows you to set the public key of the work environment (test or production) through the init() method.initCardToken() method, it is required to place the necessary elements to be able to render each hosted field.CardOptionsCardOptions with the transaction information, such as the amount, currency, among other parameters.CardOptions, you need to call the initCardToken() function to initialize an instance of ICard.requestToken() method on the previously initialized card instance. This method performs 3DS, OTP and Sift Science validations automatically. Also, validate that all the fields are correct; otherwise it will throw an exception.deferred object will be returned along with the token. In order to select the non-interest-bearing months to defer the purchase, a div tag must be placed with the id of deferred_id (<div id="deferred_id"></div>) and define within the CardOptions instance in the fields object the id deferred_id. The fields available within deferred vary depending on the country. Consult the reference for more information on deferred.deferred object with the parameters of grace months and credit type (received when searching the deferred ones for a BIN and selected by the user in the form), together with the charge information, as follows:deferred object should only be sent in cases where the card has the possibility of making deferred payments, in all other cases, such object should be omitted.firstName parameter accepts a maximum of 18 characters.545195157492548045744412151903354349003000047015productDetails), as well as your customer-payer contact details (contactDetails), along with billing ( "orderDetails". "billingDetails") and shipping details (if your business model requires it: "orderDetails". "shippingDetails"), within the request to make the charge.email parameter of the object contactDetails is required.