Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
node-expresspay
Advanced tools
Readme
Node module for using Expresspay API.
var Expresspay = require('node-expresspay');
var expresspay = new Expresspay('https://api.express-pay.by/v1/', 'API-Key', 'Secret-Key', 'Return-Secret-Key');
Signature included.
expresspay.createInvoiceERIP({
"AccountNo": 10, // required
"Amount": 10, // required
"Currency": 933, // required
"Expiration": '20171210',
"Info": 'info',
"Surname": 'Ivanov',
"FirstName": 'Ivan',
"Patronymic": 'Ivanovich',
"City": 'Minsk',
"Street": 'Karl Marks',
"House": '2a',
"Building": '2',
"Apartment": '34',
"IsNameEditable": 1,
"IsAddressEditable": 1,
"IsAmountEditable": 1,
"EmailNotifacation": 'ivanovivan@gmail.com',
"SmsPhone": '+375291111111'
})
.then(function(res) {
console.log(res.InvoiceNo);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.getInvoicesListERIP({
"From": '20170110',
"To": '20171210',
"AccountNo": 100,
"Status": 1
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.getInvoiceDetailsERIP({
"InvoiceNo": 10 // required
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.getInvoiceStatusERIP({
"InvoiceNo": 10 // required
})
.then(function(res) {
console.log(res)
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.getPaymentsListERIP({
"From": '20170110',
"To": '20171210',
"AccountNo": 100
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.getPaymentDetailsERIP({
"PaymentNo": 2 // required
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.cancelInvoiceERIP({
"InvoiceNo": 10 // required
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg)
})
Signature included.
expresspay.createInvoiceCard({
"AccountNo": "123456", // required
"Expiration": "20161224", // required
"Amount": 10, // required
"Currency": 933, // required
"Info": 'info', // required
"ReturnUrl": 'https://example.com/success', // required
"FailUrl": 'https://example.com/fail', // required
"Language": 'ru',
"SessionTimeoutSecs": 2000,
"ExpirationDate": '20161224235001'
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.getInvoiceFormCard({
"InvoiceId": 100 // required
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg)
})
expresspay.getInvoiceStatusCard({
"InvoiceId": 100, // required
"Language": 'ru'
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
expresspay.reverseInvoiceCard({
"InvoiceId": 100 // required
})
.then(function(res) {
console.log(res);
})
.catch(function(e) {
throw new Error(e.Error.Msg);
})
Return signtaure as string.
expresspay.createSignature(type, data)
var signature = expresspay.createSignature('create_invoice_erip',
{
"AccountNo": 26,
"Amount": '10',
"Currency": '933',
"Info": 'testtest',
"ReturnUrl": 'https://example.com/success',
"FailUrl": 'https://example.com/fail',
});
Types
Function | String |
---|---|
createInvoiceERIP | create_invoice_erip |
getInvoicesListERIP | get_invoices_list_erip |
getInvoiceDetailsERIP | get_invoice_details_erip |
getInvoiceStatusERIP | get_invoice_status_erip |
getPaymentsListERIP | get_payments_list_erip |
getPaymentDetailsERIP | get_payment_details |
cancelInvoiceERIP | create_invoice_card |
cancelInvoiceERIP | get_invoice_form_card |
cancelInvoiceERIP | get_invoice_status_card |
cancelInvoiceERIP | reverse_invoice_card |
Return true or false
expresspay.checkSignature(data, signature);
var check = expresspay.checkSignature('{"CmdType":1,"AccountNo":"123456789","PaymentNo":123,"Amount":"100000","Created":"20171121162605","Service":"Ремонт бытовой техники","Payer":"Иванов Петр Анатольевич","Address":"г. Минск, ул. Автозаводская, д.1, кв. 65"}', '7307D720623523CABB3C291AB1D9A683FFB711BB');
npm run eriptest
npm run cardtest
npm run checktest
MIT
FAQs
Node module for using Expresspay api.
We found that node-expresspay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.