Socket
Socket
Sign inDemoInstall

uniteller-node

Package Overview
Dependencies
6
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uniteller-node

Модуль для интеграции node проекта с системой оплаты от Uniteller.


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Install size
468 kB
Created
Weekly downloads
 

Readme

Source

uniteller-node

Модуль для интеграции node проекта с системой оплаты от Uniteller. В текущей версии доступно всего 2 метода:

  1. getPaymentLink - запрос на получение платёжной ссылки
  2. checkPaymentStatus - проверка статуса оплаты

Другие методы сервиса Uniteller будут добавлены в последующих версиях данного модуля.

Install

npm i uniteller-node // or yarn add uniteller-node

Usage

const Uniteller = require('uniteller-node')({
	UPID: '00000000',
	LOGIN: '0000',
	PASSWORD: 'YOUR PASSWORD',
	URL: 'UNITALLER CALLBACK URL',
	DEBUG: true or false
})

Uniteller.getPaymentLink({orderId: 'ORDERID', amount: 500})
Uniteller.getPaymentLink({amount: 500})
// если не указать параметр orderId в методе getPaymentLink, тогда orderId будет создан автоматически на стороне Uniteller и вернётся в ответе данного метода в параметре OrderID.

Uniteller.checkPaymentStatus({orderId: 'ORDERID'})

Значения параметров для подключения модуля

Все параметры можно найти в вашем личном кабинете (ЛК) по адресу https://lk.uniteller.ru/

UPID - идентификатор точки продажи

Расположение параметра в ЛК https://lk.uniteller.ru/#/upoints/filter Uniteller Point ID - состоит из цифр

LOGIN - логин параметров авторизации

! Не путайте с логином от личного кабинета. Расположение параметра в ЛК https://lk.uniteller.ru/#/authparams/

PASSWORD - пароль параметров авторизации

! Не путайте с паролем от личного кабинета. Расположение параметра в ЛК https://lk.uniteller.ru/#/authparams/

URL

Адрес куда будет перенаправлен пользователь, если он нажмёт на ссылку "вернуться в магазин"

DEBUG

Включение режима отладки

Keywords

FAQs

Last updated on 12 Jun 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc