1.0.2 • Published 4 years ago

robos v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Features

  • This module will help you use the ROBOKASSA payment system for JavaScript.
  • Independent functionality in the implementation of the class, allows mobile use of this module anywhere in the application.

Installation

$ npm i robos

Usage

const RobosConnect = require('robos');

const robosConfig = {
	mrhLogin: 'shoplogin',
	mrhPass1: 'securepass1',
	mrhPass2: 'securepass2',
};

const robos = new RobosConnect(robosConfig);

robos.generateUrl(price, invId, desc);

Methods

NameDescription
generateUrlcreating a link to redirect or go to the payment page (формирование подписи для создания ссылки на оплату). return: STRING
generateSignaturesignature generation to create a link (создание ссылки для редиректа или перехода на страницу оплаты). return: STRING
checkPaychecks for successful payment (проверка на успешную оплату). return: BOOLEAN

Configuration

NameDescription
mrhLoginStore identifier specified in the “Technical settings”section of your store (Идентификатор магазина, прописанный в разделе «Технические настройки» Вашего магазина)
mrhPass1merchant pass1 here
mrhPass2merchant pass2 here
outSumCurrencycurrency selection: USD, EUR and KZT. Default - ruble