Skip to content

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

License

Notifications You must be signed in to change notification settings

nkndy/js-buy-sdk

 
 

Repository files navigation

Shopify JavaScript Buy SDK

Circle CI

Note: This is the README for the current stable v0.x version. v1 of JS Buy SDK is under development in the v1.0alpha branch. See the README for more details.

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It's based on Shopify's JSON API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

If you're just getting started, please read the docs.

Example

const shopClient = ShopifyBuy.buildClient({
  accessToken: 'bf081e860bc9dc1ce0654fdfbc20892d',
  appId: 6,
  domain: 'embeds.myshopify.com'
});

shopClient.fetchAllProducts()
.then(function (products) {
  console.log(products);
})
.catch(function () {
  console.log('Request failed');
});

Documentation

For full API documentation go checkout the API docs.

Contributing

For help on setting up the repo locally, building, testing, and contributing please see CONTRIBUTING.md.

Code of Conduct

All developers who wish to contribute through code or issues, take a look at the CODE_OF_CONDUCT.md.

About

The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.3%
  • Other 1.7%