Prerequisites
Before you can enroll payment methods with the Tonder React Native Lite SDK, ensure you have completed the necessary setup and have the required components in place.- You have successfully installed and configured the Tonder SDK for React Native.
- Your backend is set up to provide a Secure Token for card management operations.
Payment Method Enrollment Steps
Follow these steps to implement payment method enrollment in your React Native application. This process involves configuring the SDK for enrollment mode, creating enrollment instances, and building a custom card saving interface.Step 1: Configure the SDK in Enrollment Mode
Configure theTonderProvider with the SDKType.ENROLLMENT to prepare the SDK for the card saving workflow. This mode enables card management functionality while allowing you to build a custom UI.
App.js
Step 2: Create the Enrollment Instance
In your enrollment screen, use the create function from the useTonder hook to initialize the enrollment session. Provide the secure token from your backend and the customer’s information, along with optional callback functions.Step 3: Build Your Custom Enrollment Form
For a fully custom enrollment experience with the Lite SDK, you can build your own form using the secure input components and handle the save action manually.Step 4: Manage Saved Cards
Use the card management methods to retrieve, view details, and remove saved cards.Next Steps
Now that you’ve successfully implemented payment method enrollment in your React Native app, explore these advanced features to enhance your payment experience:- Learn how to make a payment using the React Native Lite SDK.
- Explore the available SDK methods for payment processing.
- Customize the SDK appearance and behavior to match your app’s design.

