Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikeibberson/bambora
Thin layer over Bambora REST API
https://github.com/mikeibberson/bambora
Last synced: 19 days ago
JSON representation
Thin layer over Bambora REST API
- Host: GitHub
- URL: https://github.com/mikeibberson/bambora
- Owner: MikeIbberson
- License: mit
- Created: 2020-01-09T20:10:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:24:58.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T12:16:01.548Z (about 1 month ago)
- Language: JavaScript
- Size: 1010 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💸 Bambora
For information on the underlying responses from this
package, see [Bambora's](https://dev.na.bambora.com/docs/)
payment API.## Usage
The package exports a single default class. The constructor
takes two arguments: (1) your API key and (2) a boolean to
enable/disable pre-authorization.```javascript
const BamboraNode = require('bambora-node');module.exports = async () =>
new BamboraNode(
process.env.PASSCODE,
false, // skipPreAuthorization
).postPayment({
id: 1,
token: 'foo',
shipping: {},
billing: {},
// ...etc
});
```### Testing
When testing your code, you'll require tokens. Our `utils`
file exports a single method, `getToken`, that you can use
for this purpose. Provide it with
[sample card details](https://dev.na.bambora.com/docs/references/payment_APIs/test_cards/)
and it does the rest.