Skip to main content
This page provides a reference for the core methods and components available in the Tonder React Native Lite SDK when using LITE mode. The SDK provides individual secure components that allow you to build completely custom payment interfaces.

Core Components

The Tonder React Native Lite SDK provides these individual secure components for building custom payment interfaces.
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:
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
Each component can accept style props to customize the appearance.
If you prefer a pre-built enrollment form instead of building a custom one, you can use the TonderEnrollment component when SDKType is ENROLLMENT.

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.
Initializes the SDK with configuration. This must be called before rendering components or calling other methods.
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.
Processes a payment using the configured payment data and the values from the LITE input components.
Tokenizes and saves the current card information from the LITE input components.
Retrieves the list of saved cards for the customer.
Retrieves detailed information about a saved card using its Skyflow ID.
Deletes a saved card.
Retrieves available payment methods.

ENROLLMENT SDK Methods

Used when type is SDKType.ENROLLMENT for card saving workflows.
Tokenizes and saves the current card information. Note: This is only necessary when building a custom enrollment form or using a custom save button.
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: