1.1.1 • Published 3 years ago

@setar/zarinpal v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago