Note: There is a new version of the Stores API. If you're already using Stores modules in your code, they will continue to work.

Before using the wix-stores-backend functions, set up your site for stores. To learn more, see Adding Wix Stores. When setting up your Wix Stores site, be sure to select the payment methods you want to offer and set your payment currency.

To use the Stores API, import wixStoresBackend from the wix-stores-backend module:

import wixStoresBackend from 'wix-stores-backend';
javascript | Copy Code

Was this helpful?