Card enrollment and management features are available in the Lite version (
tonder_sdk_lite) of the Flutter SDK. This allows you to build a custom UI for saving cards.Prerequisites
Before you can enroll payment methods with the Tonder Flutter Lite SDK, ensure you have completed the necessary setup and have the required components in place.- You are using the
LiteCheckoutfrom thetonder_sdk_litepackage. - 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 Flutter 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: Build Your Custom Card Enrollment Form
Create your own card enrollment form using standard Flutter widgets to collect card information.Step 3: Save the 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 4: 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 5: 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 Flutter app, explore these advanced features to enhance your payment experience:- Learn how to make a payment using the Flutter Lite SDK.
- Explore the available SDK methods for payment processing.
- Learn more about customization options to match your app’s design.

