LiteCheckout class and the standalone validation helpers. Whether you’re implementing basic payment processing or advanced card management functionality, this documentation will help you understand the available methods and their usage.
LiteCheckout Class Methods
Method Details
Each method in the Tonder JS Lite SDK serves a specific purpose in the payment integration workflow. Below you’ll find detailed information about each method, including their parameters, usage examples, and practical implementation guidance.new LiteCheckout(config)
new LiteCheckout(config)
Creates and initialises a new SDK instance with your API credentials and configuration options.The constructor accepts the following configuration parameters:
Here’s how to initialise the SDK with basic configuration:
configureCheckout(config)
configureCheckout(config)
Sets customer email and the secure token required for card management operations.The configuration object accepts the following parameters:
Here’s how to configure the SDK for card management:
injectCheckout()
injectCheckout()
Initialises the SDK’s hidden services. This method must be called before other methods can be used.This method doesn’t require any parameters. Simply call it to initialise the SDK:
payment(paymentData)
payment(paymentData)
Initiates a payment transaction using the provided customer, cart, and card data.The payment method expects a data object with the following structure:
Here’s a complete example of processing a payment:
verify3dsTransaction()
verify3dsTransaction()
Verifies the status of a 3D Secure transaction after the user is redirected back to your site.This method doesn’t require any parameters and should be called on your return page after 3D Secure verification:
saveCustomerCard(cardData)
saveCustomerCard(cardData)
Securely tokenizes and saves new card details for future use.The method expects a card data object with the following structure:
Here’s how to save a customer card:
getCustomerCards()
getCustomerCards()
Retrieves a list of saved cards for the configured customer.This method doesn’t require any parameters and returns the customer’s saved cards:
removeCustomerCard(cardId)
removeCustomerCard(cardId)
Deletes a previously saved card using its unique skyflow_id.The method expects the following parameter:
Here’s how to remove a customer card:
Validation Helper Functions
The SDK exports standalone functions to help you validate card information on the client side before submission.
Here’s how to use the validation helpers in your custom form:
Next Steps
Now that you understand the available methods in the Tonder JS Lite SDK, you’re ready to implement advanced payment functionality in your web application. Here are the recommended next steps:- Learn how to make a payment using these methods with custom UI.
- Understand customisation options for building your own payment interface.
- Learn how to enroll payment methods for returning customers.

