Docs
STEP 3-3

Delivery URLs and versions

Delivery URLs and versions

Load the SDK with a script tag. Once it loads, window.rcmr.checkoutPlus becomes available, and the SDK dispatches the recustomer-checkout-plus:ready event on window once. The event carries no value. If the script is loaded twice on the same page, the second load does nothing.

The SDK URL is https://script.rcmr.io/checkout-plus/sdk/shopify-headless/v1/checkout-plus.js. The TypeScript type definitions are not served from a URL; copy them from 4-3. Type definitions (TypeScript).

The v1 in the URL is the SDK's major version. /v1/ serves the latest 1.x release. Changes within /v1/ are limited to bug fixes and backward-compatible additions. Backward-incompatible changes are published at a separate URL as /v2/.

Place it in the page's <head> as follows (Step 1: Load the SDK).

<script src="https://script.rcmr.io/checkout-plus/sdk/shopify-headless/v1/checkout-plus.js" defer></script>

Changelog

Changes within /v1/ reach every page that includes the SDK without any work by the SDK user. Changes are listed in the table below.

VersionChangeWork for the SDK user
1.0.0Initial release―
© Recustomer, Inc.