This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@setar/zarinpal

1.1.1 • Public • Published

Zarinpal

a Package to Control Your Zarinpal Payments

Any Docs?

Nope, it's pretty basic, setup your Zarinpal Gate at first:

const ZarinPal = require("@setar/zarinpal");
const MyGate = new ZarinPal('MY-MERCHANT-CODE-IN-HERE', false /* do i want sandbox option? */);

so about the functions, we got 4 of them

  • Request function makes a new Code and URL for a User ready to pay!
  • Information function returns status of a Code to see if the user got paid their payment or not
  • FailedPayments function returns a list of all The Codes that never got their payments finished
  • EnableCode function makes a Code available to use again for user and returns the api status code

P.S: all the functions returns promise.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i @setar/zarinpal

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

8.84 kB

Total Files

3

Last publish

Collaborators

  • boycode