Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ ebanx.request(params, function(error, reply) {
```

## Changelog
* **1.6.0**: New api endpoints.
* **1.5.0**: Implemented dynamic object construction for request
* **1.4.1**: Corrected indentation
* **1.4.0**: Added documentBalance operation
Expand Down
4 changes: 2 additions & 2 deletions lib/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Config.prototype = {

getEndPoint : function() {
if (this.getTestMode()) {
return 'https://sandbox.ebanx.com/';
return 'https://sandbox.ebanxpay.com/';
} else {
return 'https://api.ebanx.com/';
return 'https://api.ebanxpay.com/';
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Heitor Dolinski <heitor@ebanx.com> (http://www.ebanx.com/)",
"license": "ISC",
"name": "ebanx",
"version": "1.5.0",
"version": "1.6.0",
"homepage": "https://github.com/ebanx-integration/ebanx-nodejs",
"description": "Provides access to EBANX API",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions tests/ConfigTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ describe('Configuration', function() {
})

it('EndPoint return for testMode false and true', function(done) {
expect(utils.getEndPoint()).to.be.equal("https://sandbox.ebanx.com/");
expect(utils.getEndPoint()).to.be.equal("https://sandbox.ebanxpay.com/");
eb.configure({
testMode : false
})
expect(utils.getEndPoint()).to.be.equal("https://api.ebanx.com/");
expect(utils.getEndPoint()).to.be.equal("https://api.ebanxpay.com/");
done();
})
});
4 changes: 2 additions & 2 deletions tests/ebanxTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ exports.testTestMode = function(test) {
};

exports.testEndPoint = function(test) {
test.equal( utils.getEndPoint(), "https://sandbox.ebanx.com/");
test.equal( utils.getEndPoint(), "https://sandbox.ebanxpay.com/");
eb.configure({
testMode : false
});
test.equal( utils.getEndPoint(), "https://api.ebanx.com/");
test.equal( utils.getEndPoint(), "https://api.ebanxpay.com/");
test.done();
};