Card enrollment and management features are available in the Lite version (
@tonder.io/ionic-lite-sdk) of the Ionic SDK. This allows you to build a custom UI for saving cards.Prerequisites
Before you can enroll payment methods with the Tonder Ionic Lite SDK, ensure you have completed the necessary setup and have the required components in place.- You are using the
LiteCheckoutfrom the@tonder.io/ionic-lite-sdkpackage. - Your backend is set up to provide a Secure Token for card management.
Payment Method Enrollment Steps
Follow these steps to implement payment method enrollment in your Ionic application. This process involves configuring the SDK with secure tokens, collecting card data through your custom UI, and securely saving the payment method for future use.Step 1: Configure the SDK with a Secure Token
Initialize theLiteCheckout instance and configure it with the customer’s email and the secure token obtained from your backend. This configuration enables secure card management operations.
Step 2: Save a Customer Card
Use thesaveCustomerCard method to tokenize and save the card details collected from your custom UI. This method securely processes the card information and stores it for future transactions.
Step 3: Retrieve Saved Cards
Use thegetCustomerCards method to retrieve all saved payment methods for the configured customer. This allows you to display saved cards in your custom UI.
Step 4: Remove a Saved Card
Use theremoveCustomerCard method to delete a previously saved card using its unique ID. This provides customers with control over their saved payment methods.
Next Steps
Now that you’ve successfully implemented payment method enrollment in your Ionic app, explore these advanced features to enhance your payment experience:- Learn how to make a payment using the Ionic Lite SDK.
- Explore the available SDK methods for payment processing.
- Customize the SDK appearance and behavior to match your app’s design.

