1.1.3 • Published 1 year ago

antier-payment-gateway-sdk v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Antier Payment Gateway SDK

Requirements

NameRequirements
NodeJSAbove 12.x

Installing

npm i antier-payment-gateway-sdk

Setup

import XMTransaction from "antier-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