Skip to main content
Documentation IndexFetch the complete documentation index at: https://developer.subotiz.com/llms.txt Use this file to discover all available pages before exploring further.

Introductions

CDN Address

SDK Instantiation

Create an SDK instance using the following code:
This method preloads the resources required by Checkout in advance, so that the Checkout first screen renders faster when it is opened later. prewarm is a static method on Subotiz and can be called without creating an SDK instance. Prewarming runs while the page is idle and does not affect the normal loading of your page.
It is recommended to call this method as early as possible after including subotiz.js, without waiting for initEmbeddedCheckout, so as to reserve sufficient time for prewarming.

Method Invocation Example

Parameter Specification

Options (optional) object type

Initializing Embedded Checkout

This method initializes the embedded Checkout payment component and returns a Checkout instance.

Method Invocation Example

Parameter Specification

Options (required) object type

Mount the Checkout Component

First, create a container DOM element, then mount the Checkout component into this container.

Operation Example

Parameter Specification

  • selector Required string type. The CSS selector for the container element (e.g., ‘#your_domElement’).

Unmount the Checkout Component

Unmount the Checkout component from the DOM. It can be remounted later using mount.