@shopify/argo-checkout
The API for Argo extensions that run in Shopify’s Checkout
Last updated 17 hours ago by shopify-dep .
MIT · Original npm · Tarball · package.json
$ cnpm install @shopify/argo-checkout 
SYNC missed versions from official npm registry.

@shopify/argo-checkout

This library contains type definitions and other utilities for writing Argo extensions in Shopify’s checkout. However, nothing in this library is strictly required to write an Argo extension. As a developer building an Argo extension, you can forego the utilities this library provides entirely, and instead use the global shopify API directly in a plain JavaScript file. The script below is a valid Argo script without any additional processing:

shopify.extend('Checkout::PostPurchase::Render', (root, input) => {
  const button = root.createComponent('Button', {
    onPress() {
      console.log('Upsold!');
      input.done();
    },
  });

  button.appendChild('Buy now');

  root.appendChild(button);
  root.mount();
});

Keeping in mind that any utility provided by this library is only a convenience API on top of the shopify global, the rest of the documentation for this library will show examples using JavaScript imports from the @shopify/argo-checkout library. Using JavaScript modules in this way requires a build step, but can provide useful developer experience features and opportunities for build-time performance optimizations.

Getting started

Before you dig in to what this library has to offer, please read through the getting started guide.

API

This package provides utilities, types, and documentation for the many different APIs an Argo extension can access. Before you write your first extension, you should read through the following documentation in order:

Once you’ve read the documents above, you’re ready to write a checkout extension. If you’re wanting to learn even more, this repo has a few additional guides that cover techniques for writing larger, more complex extensions:

Current Tags

  • 0.5.3                                ...           latest (17 hours ago)
  • 0.3.8-beta.0                                ...           next (a month ago)

31 Versions

  • 0.5.3                                ...           17 hours ago
  • 0.5.2                                ...           5 days ago
  • 0.5.1                                ...           7 days ago
  • 0.5.0                                ...           13 days ago
  • 0.4.2                                ...           19 days ago
  • 0.4.1                                ...           a month ago
  • 0.4.0                                ...           a month ago
  • 0.3.9                                ...           a month ago
  • 0.3.8                                ...           a month ago
  • 0.3.8-beta.0                                ...           a month ago
  • 0.3.7                                ...           a month ago
  • 0.3.6                                ...           2 months ago
  • 0.3.5                                ...           2 months ago
  • 0.3.4                                ...           3 months ago
  • 0.3.3                                ...           3 months ago
  • 0.3.2                                ...           3 months ago
  • 0.3.1                                ...           3 months ago
  • 0.3.0                                ...           3 months ago
  • 0.2.0                                ...           3 months ago
  • 0.1.11                                ...           3 months ago
  • 0.1.10                                ...           3 months ago
  • 0.1.9                                ...           3 months ago
  • 0.1.8                                ...           3 months ago
  • 0.1.7                                ...           3 months ago
  • 0.1.6                                ...           3 months ago
  • 0.1.5                                ...           3 months ago
  • 0.1.4                                ...           3 months ago
  • 0.1.3                                ...           3 months ago
  • 0.1.2                                ...           3 months ago
  • 0.1.1                                ...           3 months ago
  • 0.1.0                                ...           3 months ago
Downloads
Today 2
This Week 9
This Month 82
Last Day 7
Last Week 20
Last Month 88
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |