1.0.24 • Published 4 years ago
chatex v1.0.24
Chatex
Wrapper for Chatex payment system methods
Installing:
You need to install node.js first. Once you have it, install сhatex
with command:
npm install сhatex
This will install application globally so that it may be run from the command line.
Usage:
import { Chatex } from "../lib/index"
import { ResponseUnauthorizedInterface } from "../lib/interface"
const TOKEN = ""
const chatex = new Chatex(TOKEN)
const ad_id = ""
const amount = 535
const amountFinal = 629.2
const invoice_id = 0
chatex.requestForPayment({
amount: 55
})
.then((e) => {
if (e.data.status === 1) {
console.log("requestForPayment then", e.data.data)
} else if (e.data.status === 0) {
console.log("requestForPayment then", e.data.error)
}
}).catch((e: ResponseUnauthorizedInterface) => {
console.log("requestForPayment catch", e.response.data.message)
})
Available methods:
- requestForPayment
- createPayment
- verificationOfPaymentConfirmationByTrader
- userConfirmationOfPayment
- cancellationOfPayment
- checkingPaymentStatus
- balance
- paymentHistory
- withdrawalRequest
- withdrawalCreate
- confirmationOfReceiptOfFundsFromTheUser
- cancelWithdrawal
- withdrawalCheckStatus
- withdrawalHistory
License
1.0.24
4 years ago
1.0.23
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.15
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago