The JS Buy SDK is deprecated as of January, 2025. For more information, please see the README.

Class: Config

Config(attrs)

The class used to configure the JS Buy SDK Client.

Constructor

new Config(attrs)

Parameters:
Name Type Description
attrs Object

An object specifying the configuration. Requires the following properties:

Properties
Name Type Description
storefrontAccessToken String

The Storefront access token for the shop.

domain String

The myshopify domain for the shop (e.g. graphql.myshopify.com).

Source: