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.
npm install hutko-node-js-sdk
git clone -b master https://github.com/hutko-service/node-js-sdk.git
node >= 7
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)
})
merchant_data
must be string.
Example:
const merchant_data = JSON.stringify([{
email: 'test@hutko.org',
comment: 'Some comment'
}])
See docs