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

NameTypeDescription
checkoutIdStringThe ID of the current checkout process.
stepIdStringThe ID of the step currently rendered in the checkout page, which can be one of the following:
  • 'contact-details'
  • 'delivery-method'
  • 'payment-and-billing'
  • 'place-order'

Functions

NameTypeDescription
onRefreshCheckout()(refreshCheckoutCallback: () => void) => voidAn event handler that accepts a callback function that is invoked whenever changes are made in the checkout.

Code example

Copy
1

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:

Was this helpful?
Yes
No