payriff
v1.1.5
Published
The payment system mostly used in Azerbaijan is payriff. This package is an unofficial sdk of payriff payment system
Downloads
2
Readme
Payriff
Payriff paymen system unofficial sdk for javascript / typescript.
For official doc : https://docs.payriff.com/#
Installation
npm install payriff
Usage
const {Payriff} = require("payriff")
const payriff = new Payriff(
"yourMerchant",
"yourSecret",
"approvalWebHookUrl",
"cancelWebHookUrl",
"declineWebHookUrl",
)
payriff.createOrder(100,"AZN","EN")
.then(response =>{
console.log(response.payload.paymentUrl) // redirect user to this url for payment process
})
.catch(console.log)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.