1.1.1 • Published 12 months ago

sezzle-sdk v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Sezzle SDK

npm downloads Telegram

The Sezzle Sdk library provides convenient access to the Sezzle API from applications written in server-side JavaScript/TypeScript.

Sezzle Logo

⚙️ Install

Install it locally in your project folder:

npm i sezzle-sdk
# Or Yarn
yarn add sezzle-sdk

Getting started

import { Sezzle } from "sezzle-sdk";

const sdk = new Sezzle({
  publicKey: process.env.SEZZLE_PUBLIC_KEY,
  secretKey: process.env.SEZZLE_PRIVATE_KEY,
  environment: "sandbox", // default is production
});

// return list of created webhooks
const webhooks = await sdk.listWebhooks();

// create a tokenize session
const tokenizeSession = await sdk.createTokenizeSession({
  cancel_url: {
    href: "https://domain.com/list",
  },
  complete_url: {
    href: "https://domain.com/orders",
  },
  customer: {
    tokenize: true,
  },
});

Contribution

  • Give us a star :star:
  • Fork and Clone! Awesome
  • Select existing issues or create a new issue and give us a PR with your bugfix or improvement. We love it ❤️
1.1.1

12 months ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago