Skip to main content
Subotiz supports completing the checkout process through an embedded form (Embedded Mode). It provides a low-code payment integration solution, allowing you to easily create customizable payment forms and quickly implement the checkout flow.

Integration Scenario Demo

This page explains how to implement the Embedded Checkout integration. This method enables you to rapidly implement an integrated checkout experience by leveraging Subotiz’s product, pricing, and payment capabilities. If you only need to integrate payment processing, please refer to Payment Mode.

Embedding a Complete Checkout Page

Demo of embedding a complete page

Embedding Partial Components

Demo of embedding partial components

Checkout Flow

  1. When a customer is ready to complete a purchase, initiate a checkout request from your client-side application to your server. Your server should use the Subotiz API to create a Checkout Session, passing the order_id (your platform’s unique order identifier) as a parameter to facilitate subsequent association with the trade order.
  2. The Checkout Session will provide a Session ID. Your client-side application can then use the SDKs to invoke and display the Subotiz payment form to the customer.
  3. The customer will enter their payment details into the Subotiz form and complete the transaction.
  4. After the transaction is completed, Subotiz will notify your server via a webhook. This notification includes a payment success event containing the order_id passed during session creation, enabling you to correlate your platform’s order with Subotiz’s trade order.

Integration Steps

1

Create Products

Create products and product pricing within the Subotiz merchant platform. Store the product and price information on your server. Creating a Checkout Session relies on the price_id of the product pricing to dynamically retrieve product information.

Create a Product

Create Product Pricing

2

Provide a Payment Success Page

Your application needs to provide a publicly accessible page to display after a successful payment. After the customer completes the payment, Subotiz will redirect them to this page.
3

Provide a Webhook Endpoint

Create an endpoint to receive events for your account. When an event occurs, Subotiz will send an HTTPS POST request containing a JSON-formatted event object to this Webhook endpoint. You can use these events to keep your system’s business data in sync.
4

Integrate the Embedded Form

Your client-side application can use the Subotiz SDK to integrate Subotiz Checkout.

1. Load Subotiz.js

2. Provide a Container Node

3. Create Checkout Session

Use the Subotiz API to create a Checkout Session , and return the response to your frontend.Example: Creating a Checkout Session in Embedded Mode

Key Parameters

  • order_id: Your platform’s internal order ID, used for subsequent business data correlation.
  • integration_method: Set to embedded to use the embedded form integration method.
  • return_url: The URL the customer is redirected to after a successful payment.
  • mode: Choose checkout mode when product data is present.

4. Initialize the Checkout Page