As a validation service plugin (formerly SPI), you can integrate your service with Wix's cart and checkout to allow merchants to request and use your services on their Wix sites. By integrating your service with Wix, the validations are performed on the site visitor's cart and checkout.
The integration is done via an app in the Wix App Market (created in the Wix Studio workspace), and the Wix Validations service plugin.
Future functionality includes validating products and orders.
Learn more about service plugin extensions.
By default, the Validations service plugin only validates a site visitor's checkout. If you want to also validate a site visitor's cart, set the validateInCart
parameter to true
in the extension’s configuration file in your app's dashboard.
Using the service plugin, you can design your app to validate a cart and checkout for your merchant's customers, including:
To enable Wix to communicate with your app:
Name | Type | Description |
---|---|---|
deploymentUri | string | Required. Base URI where the endpoints are called. Wix appends the endpoint path to the base URI. For example, to call the Get Validation Violations endpoint at https://my-validations.com/v1/get-violations , the base URI you provide here is https://my-validations.com . |
componentName | string | A unique name for this component. This is an internal name that will only appear in the app dashboard. |
validateInCart | boolean | Whether to validate the cart page in addition to the checkout page. Default: false |
Term | Definition |
---|---|
Merchant | Business that offers products on their Wix site to customers. |
Severity | How severe the violation is. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. |
Subscription Option | A store owner can create subscriptions to sell their products on a recurring basis. A line item can be a subscription. |
Target | Target location on a checkout or cart page where the violation will be displayed. The target violation can either be in a particular lineItem , or in an other area of the cart or checkout page. |
Validation Service Provider | A 3rd-party app that implements custom logic to validate the site's cart or checkout. |
Violations | A list of any validation violations in a site visitor's cart or checkout. |
Wix site owner | The person managing the merchant's Wix site. |