This repository contains the official Javascript & Typescript SDK for SmartPay API. For the complete API reference, go to API reference.
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.
- node.js v18 or newer
npm install @coinsmart/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);
const smartpay = new SmartPaySDK(apiKey, secretKey, apiBaseUrl);