1.3.1 • Published 16 days ago
@coinsmart/smartpay-sdk v1.3.1
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
- node.js v18 or newer
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);