Skip to main content
This guide shows you how to enroll and manage payment methods using the Flutter Lite SDK. You’ll learn how to configure the SDK for card management, save customer cards securely, and retrieve saved payment methods.
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 LiteCheckout from the tonder_sdk_lite package.
  • 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 the LiteCheckout 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 the saveCustomerCard 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 the getCustomerCards 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 the removeCustomerCard 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: