2.6.64 • Published 2 years ago

@zitterorg/illum-quidem v2.6.64

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.6.60

2 years ago

2.6.61

2 years ago

2.6.62

2 years ago

2.6.63

2 years ago

2.6.59

2 years ago

2.6.57

2 years ago

2.6.58

2 years ago

2.6.55

2 years ago

2.6.56

2 years ago

2.6.54

2 years ago

2.6.51

2 years ago

2.6.52

2 years ago

2.6.53

2 years ago

1.6.51

2 years ago

1.6.48

2 years ago

1.5.36

2 years ago

1.6.47

2 years ago

1.5.35

2 years ago

1.5.38

2 years ago

1.6.49

2 years ago

1.5.37

2 years ago

1.5.39

2 years ago

1.6.50

2 years ago

1.5.41

2 years ago

1.5.40

2 years ago

1.5.43

2 years ago

1.5.42

2 years ago

1.5.45

2 years ago

1.4.33

2 years ago

1.5.44

2 years ago

1.5.47

2 years ago

1.4.35

2 years ago

1.5.46

2 years ago

1.4.34

2 years ago

1.3.29

2 years ago

1.3.31

2 years ago

1.3.32

2 years ago

1.3.30

2 years ago

1.3.33

2 years ago

1.2.27

2 years ago

1.2.28

2 years ago

1.1.19

2 years ago

1.2.29

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.0.13

2 years ago

1.1.13

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago