In This Article
Wix eCommerce: Checkout Page
Following are the slots and APIs that are available when building a plugin for the Checkout Page.
Plugin slots
The following image shows slots in the Checkout page, into which users can add plugins.
Plugin API
Use the following API to integrate with the plugin's host.
CHECKOUT
The CHECKOUT
API provides data about the current checkout process and lets you define a callback function that is invoked whenever changes are made in the checkout.
Properties
Name | Type | Description |
---|---|---|
checkoutId | String | The ID of the current checkout process. |
stepId | String | The ID of the step currently rendered in the checkout page, which can be one of the following:
|
Functions
Name | Type | Description |
---|---|---|
onRefreshCheckout() | (refreshCheckoutCallback: () => void) => void | An event handler that accepts a callback function that is invoked whenever changes are made in the checkout. |
Code example
Copy
1
Related Wix Backend APIs
Checkout plugins usually need to integrate with Wix eCommerce's Checkout APIs, as well as other backend APIs.
In your Blocks widget or in your app's server code, you may want to perform actions or implement logic that is dependent on the state of the current checkout or related data.
The following Wix APIs may be useful:
- eCommerce APIs (Velo, REST, JavaScript SDK)
- Stores APIs (Velo, REST, JavaScript SDK)
Was this helpful?
Yes
No