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: