payriff
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

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.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i payriff

Weekly Downloads

1

Version

1.1.5

License

ISC

Unpacked Size

26.2 kB

Total Files

17

Last publish

Collaborators

  • samethaymana