Socket
Socket
Sign inDemoInstall

node-payeer-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-payeer-api

node-payeer-api ================ Official [documentation](http://docs.payeercom.apiary.io/#introduction/) for Payeer api.


Version published
Maintainers
1
Created
Source

node-payeer-api

Official documentation for Payeer api.

Get started

npm install node-payeer-api

Init payeer client

var Payeer = require('node-payeer-api').Payeer;

var accountData = {
  account: 'P1000000',
  apiId: '12345',
  apiPass: 'qwerty'
}
var Client = new Payeer(accountData);
ParameterDescriptionExample
accountYour account number in the Payeer system.P1000000
apiIdThe API user’s ID; given out when adding the API.12345
apiPassThe API user's secret key.qwerty

[getPS]:Get Payment Systems

Client.getPaymentSystems((err, systems) => {
  if(err) {
    /*hanle error*/
  }
  /*some actions*/
}

Payout Check

var requestOptions = {
    account: 'P1000000',
    apiId: '12345',
    apiPass: 'qwerty',
    ps: '26808',
    sumIn: '10.00',
    curIn: 'RUB',
    curOut: 'RUB',
    accountNumber: '79191234567'
}

Client.payoutCheck(requestOptions, (err, result) => {
  if(err) {
    /*hanle error*/
  }
  
    /*some actions*/
}
ParameterDescriptionExample
accountYour account number in the Payeer system.P1000000
apiIdThe API user’s ID; given out when adding the API.12345
apiPassThe API user's secret key.qwerty
psID of selected payment system.1136053
sumInAmount withdrawn (the amount deposited will be calculated automatically, factoring in all fees from the recipient).1.00
curInCurrency with which the withdrawal will be performed.USD, EUR, RUB
curOutdeposit currency (if the withdrawal currency is different from the deposit currency, the conversion will be performed automatically based on the Payeer system’s exchange rate when the transfer takes place).USD, EUR, RUB
accountNumberrecipient's account number in the selected payment system psP1000441

Payout

var requestOptions = {
    account: 'P1000000',
    apiId: '12345',
    apiPass: 'qwerty',
    ps: '26808',
    sumIn: '10.00',
    curIn: 'RUB',
    curOut: 'RUB',
    accountNumber: '79191234567'
}

Client.payout(requestOptions, (err, result) => {
  if(err) {
    /*hanle error*/
  }
  
    /*some actions*/
}

Transfer

var requestOptions = {
    account: 'P1000000',
    apiId: '12345',
    apiPass: 'qwerty',
    sum: '1.00',
    curIn: 'RUB',
    curOut: 'RUB',
    to: 'qwerty@gmail.com',
    comment: 'hello'
}

Client.transfer(requestOptions, (err, result) => {
  if(err) {
    /*hanle error*/
  }
  
    /*some actions*/
}
ParameterDescriptionExample
toUser’s Payeer account number or email address (if the email address was not registered before the transfer, the registration will be performed automatically)P1000000
commentComments on the transfer (this should preferably show the transaction ID in your accounting system)Transfer #1365

Get Comission

Client.getCommission(ps, currency, (err, result) => {
  if(err) {
    /*hanle error*/
  }
  
    /*some actions*/
}
ParameterDescriptionExample
psID of selected payment system.1136053
currencyCurrencyUSD, EUR, RUB

Keywords

FAQs

Package last updated on 29 Aug 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc