1.1.1 • Published 11 months ago

sezzle-sdk v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 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

11 months ago

1.1.0

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago