1.0.12 • Published 7 years ago

node-payeer-api v1.0.12

Weekly downloads
18
License
-
Repository
-
Last release
7 years ago

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
1.0.12

7 years ago

1.0.11

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago