Skip to content

Set up Liquido.js

Liquido.js reference

This reference documents every object and method available in Liquido’s browser-side JavaScript library, Liquido.js. You can use Liquido.js’ APIs to tokenize customer information, collect sensitive payment details using customizable Liquido Elements.

Including Liquido.js

Include the Liquido.js script on each page of your site—it should always be loaded directly from, rather than included in a bundle or hosted yourself.

Including Liquido.js
<script src=""></script>

Initializing Liquido.js


Use Liquido(options?) to create an instance of the Liquido object. The Liquido object is your entrypoint to the rest of the Liquido.js SDK.

options Parameters:

Parameter Required Type Description
apiVersion String Override your account's API version.
locale String A locale used to globally configure localization in Liquido. Setting the locale here will localize error strings for all Liquido.js methods. It will also configure the locale for Elements. Default is auto (Liquido detects the locale of the browser).
Back to top