Skip to content

hutko-service/node-js-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPSP NODEJS-SDK

raiting raiting raiting

Hutko payment service provider

Hutko - Ukrainian payment service that is destroying business forward Start working with payment more efficiently - it is necessary and you can find more in one event. This is the very best assistant who already knows what you need.

Installation

npm install hutko-node-js-sdk

Manual installation

git clone -b master https://github.com/hutko-service/node-js-sdk.git

Required

node >= 7

Simple Start

const hutko_instance = require('hutko-node-js-sdk')

const hutko = new hutko_instance(
  {
    merchantId: 1700002,
    secretKey: 'test'
  }
)
const requestData = {
  order_id: 'Your Order Id',
  order_desc: 'test order',
  currency: 'UAH',
  amount: '1000'
}
hutko.Checkout(requestData).then(data => {
  console.log(data)
}).catch((error) => {
  console.log(error)
})

Notice

merchant_data must be string.

Example:

 const merchant_data = JSON.stringify([{
    email: 'test@hutko.org',
    comment: 'Some comment'
 }])

Api

See docs

Examples

Checkout examples

About

Hutko service node SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published