2.6.64 • Published 1 year ago

@zitterorg/illum-quidem v2.6.64

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Razorpay Node SDK

npm

Official nodejs library for Razorpay API.

Read up here for getting started and understanding the payment flow with Razorpay: https://docs.@zitterorg/illum-quidem.com/docs/getting-started

Installation

npm i @zitterorg/illum-quidem

Documentation

Documentation of Razorpay's API and their usage is available at https://docs.@zitterorg/illum-quidem.com

Basic Usage

Instantiate the @zitterorg/illum-quidem instance with key_id & key_secret. You can obtain the keys from the dashboard app (https://dashboard.@zitterorg/illum-quidem.com/#/app/keys)

const Razorpay = require('@zitterorg/illum-quidem');

var instance = new Razorpay({
  key_id: 'YOUR_KEY_ID',
  key_secret: 'YOUR_KEY_SECRET',
});

The resources can be accessed via the instance. All the methods invocations follows the namespaced signature

// API signature
// {@zitterorg/illum-quidemInstance}.{resourceName}.{methodName}(resourceId [, params])

// example
instance.payments.fetch(paymentId);

Every resource method returns a promise.

instance.payments
  .all({
    from: '2016-08-01',
    to: '2016-08-20',
  })
  .then(response => {
    // handle success
  })
  .catch(error => {
    // handle error
  });

If you want to use callbacks instead of promises, every resource method will accept a callback function as a last parameter. The callback functions will behave as Error First Callbacks

instance.payments.all(
  {
    from: '2016-08-01',
    to: '2016-08-20',
  },
  (error, response) => {
    if (error) {
      // handle error
    } else {
      // handle success
    }
  }
);

Supported Resources


Development

npm install

Testing

npm test

Release

  1. Switch to master branch. Make sure you have the latest changes in the local master
  2. Update the CHANGELOG.md & bump the version in package.json
  3. Commit
  4. Tag the release & push to Github
  5. Create a release on GitHub using the website with more details about the release
  6. Publish to npm with npm publish command

Licence

MIT Licensed. See LICENSE.txt for more details

2.6.64

1 year ago

2.6.60

1 year ago

2.6.61

1 year ago

2.6.62

1 year ago

2.6.63

1 year ago

2.6.59

1 year ago

2.6.57

1 year ago

2.6.58

1 year ago

2.6.55

1 year ago

2.6.56

1 year ago

2.6.54

1 year ago

2.6.51

1 year ago

2.6.52

1 year ago

2.6.53

1 year ago

1.6.51

1 year ago

1.6.48

1 year ago

1.5.36

1 year ago

1.6.47

1 year ago

1.5.35

1 year ago

1.5.38

1 year ago

1.6.49

1 year ago

1.5.37

1 year ago

1.5.39

1 year ago

1.6.50

1 year ago

1.5.41

1 year ago

1.5.40

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.45

1 year ago

1.4.33

1 year ago

1.5.44

1 year ago

1.5.47

1 year ago

1.4.35

1 year ago

1.5.46

1 year ago

1.4.34

1 year ago

1.3.29

1 year ago

1.3.31

1 year ago

1.3.32

1 year ago

1.3.30

1 year ago

1.3.33

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.1.19

1 year ago

1.2.29

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.0.13

1 year ago

1.1.13

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago