1.0.9 • Published 2 years ago

stage-monster-sdk v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Xchange Monster Payment Gateway SDK

Requirements

NameRequirements
NodeJSAbove 12.x

Installing

npm i --save xchange-monster-payment-gateway-sdk

Setup

import XMTransaction from "xchange-monster-payment-gateway-sdk"

const xmTransaction = new XMTransaction(SECRET_KEY)

Methods

Availabale currencies
const currencies = xmTransaction.getAvailableCryptos()
{
    data: [
        {
              id: 1,
              userId: 1,
              coinId: 'eth',
              address: '0x75870e2c1b8018F3a07F390A01fE78C046688f13',
              status: true,
              coinImage: 'https://stage-exchange-cultcoin.s3.us-east-2.amazonaws.com/icon2-eth.png'
        },
    ],
    message: "Available cryptos fetched successfully"
}
Start Transaction
const currencies = xmTransaction.startTransaction(supportedCoinId, amount, email, description)

response: URL to be opened in webview along with reference id
Variable NameDescriptionRequired
supportedCoinIdThe id from the list of supported coinstrue
amountThe amount of crypto to sendtrue
emailEmail of the usertrue
descriptionDescription for the trnsactiontrue
1.0.9

2 years ago