Skip to main content
This page provides a reference for the core methods available in the Ionic Full SDK.

Core Methods

The Tonder Ionic Full SDK (@tonder.io/ionic-full-sdk) exposes the InlineCheckout class, which implements all the methods necessary for payment, enrollment, configuration, and cleanup.

Method Details

Each method in the Tonder Ionic 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.
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.

InlineCheckout Parameter Table

Here’s an example of how to initialize the InlineCheckout class:
Renders the pre-built checkout UI into your designated container. This method creates and displays the complete payment form with card input fields, validation, and styling.Here’s an example:
Initiates a payment transaction using the provided customer and cart data. This method processes the payment securely and handles the transaction flow.Here’s an example of how to process a payment:
Sets the payment data (such as customer, cart, and metadata). This is useful when using the default Tonder payment button.Here’s an example:
Processes a payment transaction securely using the provided checkoutData.
Verifies the status of a 3D Secure (3DS) transaction. It should be called immediately after injectCheckout() to handle the redirect return.
Saves a new card. This method is useful when the SDK is configured as an enrollment card (isEnrollmentCard: true).
Removes the checkout UI from the DOM and cleans up resources.