Credit Card
The Credit Card library is a lightweight JavaScript library that provides an embeddable, secure credit card form for your payment websites.
Installation
<script src="https://sdk.leanx.io/index.umd.min.js"></script>Getting Started
Instantiating the Library
const cc = new LeanxCC({
containerId: 'card-container', // HTML element id where the form will be rendered
});Mounting the Form
cc.init()Using the Library
Card Form Validation
Submit Form
API Reference
LeanxCC Class
Constructor
Name
Type
Description
Methods
Code
Description
Argument
Value
Code
Description
Last updated