Skip to content

Sacrize/nodejs-payu-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJs Payu SDK

A lightweight library that allows easy communication with the Polish Payu API v2_1.

Getting Started

Install it via npm:

npm install nodejs-payu-sdk --save

Use the built-in methods:

var Payu = require('nodejs-payu-sdk');
var payu = new Payu(clientId, clientSecret, posId, key, environment);
payu.createOrder({ ... })
    .then((res) => { })
    .catch((err) => { });

Available methods

  • getShopData()
  • getOrder(orderId)
  • getOrderTransactions(orderId)
  • createOrder(order)
  • cancelOrder(orderId)
  • refundOrder(orderId, amount, description)
    • amount(optional): empty means full refund
    • description(optional)
  • verifyNotification(json, headers)

License

MIT

About

Simple Polish PayU API v2_1 sdk for nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published