EBANX Node.js
This library enables you to integrate EBANX with any Node.js application.
Requirements
Node.js >= 0.10.x
Installation
npm
The EBANX module is available on npm, therefore you can install it by simply updating your package.json file:
You can also install it through the command line:
Git Repository
Clone the git repository anywhere you want and include the EBANX module autoloader from ‘index.js’.
Usage
To use the EBANX NodeJS module you need to setup your integration key.
You can also enable or disable test mode:
You can change the following settings:
- integrationKey: your integration key. It will be different in test and production modes.
- testMode: enable or disable the test mode. The default value is false.
To create a new API request, just call one of the following methods on the module object and supply it with the request parameters:
ebanx.cancel()
ebanx.capture()
ebanx.direct()
ebanx.exchange()
ebanx.print()
ebanx.query()
ebanx.refund()
ebanx.refundOrCancel()
ebanx.request()
ebanx.token()
ebanx.zipcode()
request
command example:
Contributing
Help us to improve our applications!
If you find a bug or wants to add some new feature, talk with us. Send a pull request to our GitHub repository.