This guide walks you through processing a payment using the Full SDK (InlineCheckout) for Ionic. This revised flow ensures proper initialization, payment data configuration, and immediate 3D Secure verification handling.Documentation Index
Fetch the complete documentation index at: https://docs.tonder.io/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you can process payments with the Tonder Ionic Full SDK, ensure you have completed the necessary setup and have the required components in place.- You have successfully installed and configured the Tonder Ionic Full SDK.
- You must add Openpay dependencies to your index.html file.
index.html
- You have a checkout page with an empty
divelement to contain the SDK’s UI.
Before you can process payments, ensure all required dependencies are installed and configured
Mobile Network Permissions
If deploying to a mobile platform, you must configure network permissions:- Android: Edit AndroidManifest.xml to add the Internet permission:
HTML Structure
Ensure you have an entry point with the mandatory ID ‘tonder-checkout’:Payment Integration Steps
This process requires you to initialize the SDK, then configure initial data, inject the UI, handle 3DS verification, and finally process the payment.Step 1: Initialize the SDK
Create an instance of InlineCheckout and define the required paymentData structure. The full payment data is defined when calling the payment() method.Step 2: Inject the Checkout UI
You must call configureCheckout() after creating the instance. This function sets initial customer information (like email) used for features such as fetching saved cards.Step 3: Handle 3DS Verification
This step must be called immediately after injectCheckout() to correctly verify transactions (like redirects from a 3DS challenge).Step 4: Process the Payment
Configure the payment processing by listening to your custom button click. The complete payment data structure (customer, cart, currency, metadata) must be passed to the payment() methodNext Steps
Now that you’ve successfully integrated payment processing into your Ionic app, explore these advanced features to enhance your payment experience:- Explore the available SDK methods for advanced payment operations.

