Skip to content

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

License

Notifications You must be signed in to change notification settings

Paiman-Rasoli/sezzle-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ⭐
  • 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 ❤️

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published