1.0.9 • Published 3 years ago
stage-monster-sdk v1.0.9
Xchange Monster Payment Gateway SDK
Requirements
Name | Requirements |
---|---|
NodeJS | Above 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 Name | Description | Required |
---|---|---|
supportedCoinId | The id from the list of supported coins | true |
amount | The amount of crypto to send | true |
Email of the user | true | |
description | Description for the trnsaction | true |
1.0.9
3 years ago