gopay-node
[node]: https://nodejs.org/ [npm]: https://www.npmjs.com/ [yarn]: https://yarnpkg.com/ [webpack]: https://webpack.js.org/ [rollup]: https://rollupjs.org/
Last updated 3 months ago by gyro-n .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gopay-node 
SYNC missed versions from official npm registry.

gopay-node

SDK library for Node.js to consume GoPay API.

NPM version Node.js version support Code coverage Dependencies Dev Dependencies Optional Dependencies GitHub Issues GitHub Pull Requests CLA assistant MIT licensed

Table of Contents

Requirements

gopay-node requires the following to run:

Installation

Gopay Node SDK is easiest to use when installed with npm:

npm install gopay-node

or with yarn:

yarn add gopay-node

Usage

Just import the module into your code with, create an instance of it and you're set:

import SDK from "gopay-node";

const sdk = new SDK();

Customize

You can create your own SDK object configuration that only contains selected resources. In the following example show how to prepare a class that only has Stores resources available:

import { PaymentsSDK } from "gopay-node/sdk/PaymentsSDK";

import { Stores } from "gopay-node/resources";
// OR directly
import { Stores } from "gopay-node/resources/Stores";

class CustomSDK extends PaymentsSDK {
    constructor (options?: RestAPIOptions) {
        super(options);
        this.stores = new Stores(this.api);
    }
}

const customSdk = new CustomSDK();

API Documentation

WIP

TypeScript

The library is written in TypeScript and thus type definitions are already included. You can just import compnents of the SDK as usual.

Browser usage

This module is primarily design for Node.js, However it is possible to use it in the browser when it is transpiled by a bundler such as Webpack or Rollup.

For optimizing your build and making it smaller you can also use a module gopay-node-es which is exported as ES module and thus supports Tree shaking.

Contributing

To contribute to gopay-node, clone this repo locally and commit your code on a separate branch. Please write unit tests for your code and run the linter before opening a pull request:

npm test        # run the tests
npm run linter  # run the linter

License

gopay-node is licensed under the MIT license. Copyright © 2018, GoPay Team

Current Tags

  • 0.8.41                                ...           latest (3 months ago)
  • 0.5.16                                ...           legacy (a year ago)
  • 0.7.0-0                                ...           next (a year ago)

158 Versions

  • 0.8.41                                ...           3 months ago
  • 0.8.40                                ...           3 months ago
  • 0.8.39                                ...           3 months ago
  • 0.8.38                                ...           3 months ago
  • 0.8.37                                ...           3 months ago
  • 0.8.36                                ...           8 months ago
  • 0.8.35                                ...           8 months ago
  • 0.8.34                                ...           9 months ago
  • 0.8.33                                ...           9 months ago
  • 0.8.32                                ...           9 months ago
  • 0.8.31                                ...           10 months ago
  • 0.8.30                                ...           10 months ago
  • 0.8.29                                ...           10 months ago
  • 0.8.28                                ...           10 months ago
  • 0.8.27                                ...           10 months ago
  • 0.8.26                                ...           10 months ago
  • 0.8.25                                ...           10 months ago
  • 0.8.24                                ...           10 months ago
  • 0.8.23                                ...           10 months ago
  • 0.8.22                                ...           10 months ago
  • 0.8.21                                ...           10 months ago
  • 0.8.20                                ...           10 months ago
  • 0.8.19                                ...           a year ago
  • 0.8.18                                ...           a year ago
  • 0.8.17                                ...           a year ago
  • 0.8.16                                ...           a year ago
  • 0.8.15                                ...           a year ago
  • 0.8.14                                ...           a year ago
  • 0.8.13                                ...           a year ago
  • 0.8.12                                ...           a year ago
  • 0.8.11                                ...           a year ago
  • 0.8.10                                ...           a year ago
  • 0.8.9                                ...           a year ago
  • 0.8.8                                ...           a year ago
  • 0.8.7                                ...           a year ago
  • 0.8.6                                ...           a year ago
  • 0.8.5                                ...           a year ago
  • 0.8.4                                ...           a year ago
  • 0.8.3                                ...           a year ago
  • 0.8.2                                ...           a year ago
  • 0.8.1                                ...           a year ago
  • 0.8.0                                ...           a year ago
  • 0.7.1                                ...           a year ago
  • 0.7.0                                ...           a year ago
  • 0.7.0-0                                ...           a year ago
  • 0.6.18                                ...           a year ago
  • 0.6.17                                ...           a year ago
  • 0.6.16                                ...           a year ago
  • 0.6.15                                ...           a year ago
  • 0.6.14                                ...           a year ago
  • 0.6.13                                ...           a year ago
  • 0.6.12                                ...           a year ago
  • 0.6.11                                ...           a year ago
  • 0.6.10                                ...           a year ago
  • 0.6.9                                ...           a year ago
  • 0.6.8                                ...           a year ago
  • 0.6.7                                ...           a year ago
  • 0.6.6                                ...           a year ago
  • 0.6.5                                ...           a year ago
  • 0.6.4                                ...           a year ago
  • 0.6.3                                ...           a year ago
  • 0.6.2                                ...           a year ago
  • 0.6.1                                ...           a year ago
  • 0.5.16                                ...           a year ago
  • 0.6.0                                ...           a year ago
  • 0.5.15                                ...           a year ago
  • 0.5.14                                ...           a year ago
  • 0.5.13                                ...           a year ago
  • 0.5.12                                ...           a year ago
  • 0.5.11                                ...           a year ago
  • 0.5.10                                ...           a year ago
  • 0.5.9                                ...           a year ago
  • 0.5.8                                ...           a year ago
  • 0.5.7                                ...           a year ago
  • 0.5.6                                ...           a year ago
  • 0.5.5                                ...           a year ago
  • 0.5.4                                ...           a year ago
  • 0.5.3                                ...           a year ago
  • 0.5.2                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.7                                ...           a year ago
  • 0.4.6                                ...           2 years ago
  • 0.4.5                                ...           2 years ago
  • 0.4.4                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.80                                ...           2 years ago
  • 0.3.79                                ...           2 years ago
  • 0.3.78                                ...           2 years ago
  • 0.3.77                                ...           2 years ago
  • 0.3.76                                ...           2 years ago
  • 0.3.75                                ...           2 years ago
  • 0.3.74                                ...           2 years ago
  • 0.3.73                                ...           2 years ago
  • 0.3.72                                ...           2 years ago
  • 0.3.71                                ...           2 years ago
  • 0.3.70                                ...           2 years ago
  • 0.3.69                                ...           2 years ago
  • 0.3.68                                ...           2 years ago
  • 0.3.67                                ...           2 years ago
  • 0.3.66                                ...           2 years ago
  • 0.3.65                                ...           2 years ago
  • 0.3.64                                ...           2 years ago
  • 0.3.63                                ...           2 years ago
  • 0.3.62                                ...           2 years ago
  • 0.3.61                                ...           2 years ago
  • 0.3.60                                ...           2 years ago
  • 0.3.59                                ...           2 years ago
  • 0.3.58                                ...           2 years ago
  • 0.3.57                                ...           2 years ago
  • 0.3.56                                ...           2 years ago
  • 0.3.55                                ...           2 years ago
  • 0.3.54                                ...           2 years ago
  • 0.3.53                                ...           2 years ago
  • 0.3.52                                ...           2 years ago
  • 0.3.51                                ...           2 years ago
  • 0.3.50                                ...           2 years ago
  • 0.3.49                                ...           2 years ago
  • 0.3.48                                ...           2 years ago
  • 0.3.47                                ...           2 years ago
  • 0.3.46                                ...           2 years ago
  • 0.3.45                                ...           2 years ago
  • 0.3.44                                ...           2 years ago
  • 0.3.43                                ...           2 years ago
  • 0.3.42                                ...           2 years ago
  • 0.3.41                                ...           2 years ago
  • 0.3.40                                ...           2 years ago
  • 0.3.39                                ...           2 years ago
  • 0.3.38                                ...           2 years ago
  • 0.3.37                                ...           2 years ago
  • 0.3.36                                ...           2 years ago
  • 0.3.35                                ...           2 years ago
  • 0.3.34                                ...           2 years ago
  • 0.3.33                                ...           2 years ago
  • 0.3.32                                ...           2 years ago
  • 0.3.31                                ...           2 years ago
  • 0.3.30                                ...           2 years ago
  • 0.3.29                                ...           2 years ago
  • 0.3.28                                ...           2 years ago
  • 0.3.27                                ...           2 years ago
  • 0.3.26                                ...           2 years ago
  • 0.3.25                                ...           2 years ago
  • 0.3.24                                ...           2 years ago
  • 0.3.23                                ...           2 years ago
  • 0.3.22                                ...           2 years ago
  • 0.3.21                                ...           2 years ago
  • 0.3.20                                ...           2 years ago
  • 0.3.19                                ...           3 years ago
  • 0.3.18                                ...           3 years ago
  • 0.3.17                                ...           3 years ago
  • 0.3.16                                ...           3 years ago
  • 0.3.15                                ...           3 years ago
  • 0.3.14                                ...           3 years ago
  • 0.3.13                                ...           3 years ago
  • 0.3.12                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 317
Last Day 1
Last Week 1
Last Month 1
Dependencies (15)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |