InlineCheckout class of the Flutter Full SDK.
Core Methods
The Tonder Flutter Full SDK provides these essential methods for initializing, configuring, and rendering the payment interface. Each method serves a specific purpose in the payment integration workflow.| Method | Description |
|---|---|
new InlineCheckout(..) | Initializes the SDK with configuration like apiKeyTonder and returnUrl. |
setPaymentData(data) | Loads the customer data (name, email, etc.) into the SDK instance. |
setCartTotal(total) | Sets the total amount for the transaction. |
injectCheckout() | Renders the pre-built checkout UI. |
Method Details
Each method in the Tonder Flutter Full SDK serves a specific purpose in the payment integration workflow. Below you’ll find detailed information about each method, including their parameters, usage examples, and practical implementation guidance.InlineCheckout Constructor
InlineCheckout Constructor
Creates a new instance of the InlineCheckout class with the necessary configuration for secure payment processing. This constructor establishes the connection with Tonder’s services and configures the payment environment.
Here’s an example of how to initialize the InlineCheckout class:
| Parameter | Type | Description |
|---|---|---|
apiKeyTonder | String | Your Tonder API key for authentication |
returnUrl | String | URL where users are redirected after payment completion |
successUrl | String | URL for successful payment redirects |
renderPaymentButton | bool | Whether to show the SDK’s built-in payment button |
setPaymentData
setPaymentData
Configures the customer information that will be used during the payment process. This data is used to pre-fill the checkout form and associate the transaction with the customer.
Here’s an example of how to set the customer data:
| Parameter | Type | Description |
|---|---|---|
data | Map<String, dynamic> | Customer information including name, email, etc. |
setCartTotal
setCartTotal
Sets the total amount for the transaction. This value is displayed in the checkout interface and used for payment processing.
Here’s an example of how to set the cart total:
| Parameter | Type | Description |
|---|---|---|
total | int | Total amount in cents (e.g., 399 for $3.99) |
injectCheckout
injectCheckout
Renders the pre-built payment interface within your Flutter widget. This method creates the complete checkout form with card input fields, validation, and styling.
Here’s an example of how to inject the checkout:
| Parameter | Type | Description |
|---|---|---|
| None | - | This method takes no parameters |
Next Steps
Now that you’re familiar with the available methods in the Flutter Full SDK, explore these guides to enhance your implementation:- Learn how to make a payment using the Flutter Full SDK.

