@skipifycheckout/checkout-sdk

0.0.7 • Public • Published

Skipify Checkout SDK

skipify-logo

Checkout script generation, used for enabling Skipify checkout in a merchant store

Tooling

  • NX
  • Vite
  • Rollup
  • ESBuild

Features

  • Static file generation
  • Shared features across platforms
  • Platform-specific features

Usage

The project contains the following scripts:

  • nx run [platform]:build:[environment] - generates the bundles, platform can be bigcommerce | custom, environment can be dev | stage | prod

Bundles get generated inside the dist folder

Developing

// Start development server
`nx run bigcommerce:build:dev --watch`

Inside another terminal:

// Start development server
npm run host

Your scripts should be now live on http://localhost:4200/

BigCommerce Add hosted script to the store by pasting the following code snippet Remember to replace merchantId in the query

var script = document.createElement("script");
script.src = `http://localhost:4200/bigCommerce.js?merchantId=77acbdc1-2d31-40ba-b4aa-02c69888ad86&date=${new Date().getTime()}`;
document.head.appendChild(script);

Readme

Keywords

none

Package Sidebar

Install

npm i @skipifycheckout/checkout-sdk

Weekly Downloads

0

Version

0.0.7

License

MIT

Unpacked Size

545 kB

Total Files

73

Last publish

Collaborators

  • skipifycom