Core Methods
The Tonder Ionic Lite SDK (@tonder.io/ionic-lite-sdk) exposes the LiteCheckout class, which implements all the methods necessary for payment processing, card management, and configuration.Method Details
Each method in the Tonder Ionic Lite SDK serves a specific purpose in the payment integration workflow. The Lite SDK includes all core payment methods plus additional methods for card management. Below you’ll find detailed information about each method, including their parameters, usage examples, and practical implementation guidance.LiteCheckout Constructor
LiteCheckout Constructor
Creates a new instance of the LiteCheckout class with the necessary configuration for secure payment processing. This constructor establishes the connection with Tonder’s services and configures the payment environment.
Here’s an example of how to initialize the LiteCheckout class:
LiteCheckout Parameter Table
| Parameter | Type | Description | Required |
|---|---|---|---|
apiKey | String | Your Tonder API key for authentication. | Yes |
returnUrl | String | URL where the checkout form is mounted (used for 3DS redirect completion). | No |
mode | String | Operating environment mode. Options: ‘product’ or ‘stage’. | No |
configureCheckout(config)
configureCheckout(config)
Sets customer email and the secure token required for card management operations.
Here’s an example:
| Parameter | Type | Description |
|---|---|---|
| config | Object | Configuration object with customer email and secure token |
payment(checkoutData)
payment(checkoutData)
Processes a payment transaction securely using the provided checkoutData collected from your custom UI.
| Parameter | Type | Description |
|---|---|---|
| checkoutData | object | Customer, cart, and card information for the transaction |
getCustomerCards()
getCustomerCards()
Retrieves a list of saved cards for the configured customer.
| Parameter | Type | Description |
|---|---|---|
| None | - | This method takes no parameters |
saveCustomerCard(cardData)
saveCustomerCard(cardData)
Securely tokenizes and saves new card details for the customer.
| Parameter | Type | Description |
|---|---|---|
| cardData | Object | Card information to be saved |
removeCustomerCard(cardId)
removeCustomerCard(cardId)
Deletes a previously saved card using its unique ID.
| Parameter | Type | Description |
|---|---|---|
| cardId | String | Unique identifier of the card to remove |
verify3dsTransaction()
verify3dsTransaction()
Verifies the status of a 3D Secure (3DS) transaction. This method should be called to handle the redirect return from a 3DS challenge.
| Parameter | Type | Description |
|---|---|---|
| None | - | This method takes no parameters. |
Next Steps
Now that you’re familiar with the available methods in the Ionic Lite SDK, explore these guides to enhance your implementation:- Learn how to make a payment using the Ionic Lite SDK.
- Learn how to enroll payment methods for returning customers.
- Customize the SDK appearance and behavior to match your app’s design.

