Core Components
The Tonder React Native Full SDK provides these essential components for building payment interfaces in INLINE mode.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.INLINE for Full SDK. |
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. |
TonderPayment
TonderPayment
Renders the complete, pre-built payment UI. This component is used when SDKType is INLINE.
Here’s an example of how to render the TonderPayment component:
| Parameter | Type | Description |
|---|---|---|
| None | - | This component takes no props |
Hook: useTonder
A React hook that provides access to the SDK’s methods for INLINE mode.INLINE SDK Methods
These methods are available when using SDKType.INLINE for the Full SDK experience.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 with customer and cart details. |
| config.callbacks | Object | Optional callback functions (e.g., onFinishPayment). |
| config.customization | Object | Optional UI customization options. |
| config.events | Object | Optional event handlers for card form input fields. |
payment Method
payment Method
Processes a payment using the configured data. Note: This is only necessary when you want to use a custom payment button (by setting customization.paymentButton.show: false).
reset Method
reset Method
Resets the SDK state to its initial values and cleans up resources. This is useful for re-initializing the payment flow after a transaction.
Next Steps
Now that you’re familiar with the available methods in the React Native Full SDK, explore these guides to enhance your implementation:- Learn how to make a payment using the React Native Full SDK.
- Customize the SDK appearance and behavior to match your app’s design.

