@coinsmart/smartpay-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

The Official Javascript & Typescript SDK for SmartPay API

About

This repository contains the official Javascript & Typescript SDK for SmartPay API. For the complete API reference, go to API reference.

Usage

Before You Begin

Make sure you have the credentials for SmartPay API Services. Otherwise, please contact SmartPay support for further instructions on how to obtain your API credentials.

Requirements

Installation

npm install @coinsmart/smartpay-sdk

Importing SmartPay SDK

JavaScript:

const { SmartPaySDK } = require("@coinsmart/smartpay-sdk");
const smartpay = new SmartPaySDK(apiKey, secretKey);

TypeScript:

import { SmartPaySDK } from "@coinsmart/smartpay-sdk";
const smartpay = new SmartPaySDK(apiKey, secretKey);

For UAT (sandbox) environment set apiBaseUrl:

const smartpay = new SmartPaySDK(apiKey, secretKey, apiBaseUrl);

Readme

Keywords

none

Package Sidebar

Install

npm i @coinsmart/smartpay-sdk

Weekly Downloads

14

Version

1.3.1

License

MIT

Unpacked Size

52 kB

Total Files

14

Last publish

Collaborators

  • cs-viktor
  • simplydigital