Core Components
The Tonder React Native Lite SDK provides these individual secure components for building custom payment interfaces.TonderProvider
TonderProvider
A wrapper component that initializes the SDK and provides its context to children. This component must be placed at the root of your checkout flow.
Here’s an example of how to configure the TonderProvider:
| Parameter | Type | Description |
|---|---|---|
config | Object | Configuration object with SDK settings. |
config.type | SDKType | Type of SDK: SDKType.LITE for Lite SDK or SDKType.ENROLLMENT for card enrollment. |
config.mode | String | Operating mode: 'development', 'production', or 'sandbox'. |
config.apiKey | String | Your Tonder Public API key. |
config.returnURL | String | Optional URL for 3DS redirect completion. |
Individual Secure Components
Individual Secure Components
For SDKType.LITE integrations, the SDK provides individual, secure components to build a custom UI:
- CardHolderInput - Secure input for cardholder name
- CardNumberInput - Secure input for card number
- CardCVVInput - Secure input for CVV/CVC
- CardExpirationDateInput - Secure input for full expiration date
- CardExpirationMonthInput - Secure input for expiration month
- CardExpirationYearInput - Secure input for expiration year
TonderEnrollment (Pre-built)
TonderEnrollment (Pre-built)
If you prefer a pre-built enrollment form instead of building a custom one, you can use the TonderEnrollment component when SDKType is ENROLLMENT.
| Parameter | Type | Description |
|---|---|---|
| None | - | This component takes no props |
Hook: useTonder
A React hook that provides access to the SDK’s methods for LITE and ENROLLMENT modes.Common Methods
These methods are shared by both LITE and ENROLLMENT modes.create Method
create Method
Initializes the SDK with configuration. This must be called before rendering components or calling other methods.
| Parameter | Type | Description |
|---|---|---|
| config | Object | Configuration object for the session. |
| config.secureToken | String | Secure token obtained from your backend (required for card operations). |
| config.paymentData | Object | Payment information (for LITE mode). |
| config.customer | Object | Customer information (for ENROLLMENT mode). |
| config.callbacks | Object | Optional callback functions (e.g., onFinishPayment, onFinishSave). |
| config.customization | Object | Optional UI customization options. |
| config.events | Object | Optional event handlers for card form input fields. |
reset Method
reset Method
Resets the SDK state to its initial values and cleans up resources. This is useful for re-initializing the flow after a transaction.
LITE SDK Methods
Used when type is SDKType.LITE, providing full control over the payment flow with custom components.payment Method
payment Method
Processes a payment using the configured payment data and the values from the LITE input components.
saveCustomerCard Method
saveCustomerCard Method
Tokenizes and saves the current card information from the LITE input components.
getCustomerCards Method
getCustomerCards Method
Retrieves the list of saved cards for the customer.
getCardSummary Method
getCardSummary Method
Retrieves detailed information about a saved card using its Skyflow ID.
removeCustomerCard Method
removeCustomerCard Method
Deletes a saved card.
getPaymentMethods Method
getPaymentMethods Method
Retrieves available payment methods.
ENROLLMENT SDK Methods
Used when type is SDKType.ENROLLMENT for card saving workflows.saveCustomerCard Method
saveCustomerCard Method
Tokenizes and saves the current card information. Note: This is only necessary when building a custom enrollment form or using a custom save button.
getCardSummary Method
getCardSummary Method
Retrieves detailed information about a saved card using its Skyflow ID.
Next Steps
Now that you’re familiar with the available methods in the React Native Lite SDK, explore these guides to enhance your implementation:- Learn how to make a payment using the React Native Lite SDK.
- Learn how to enroll payment methods for returning customers.
- Customize the SDK appearance and behavior to match your app’s design.

