https://github.com/ruffrey/node-paysimple
https://github.com/ruffrey/node-paysimple
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruffrey/node-paysimple
- Owner: ruffrey
- Created: 2015-03-18T03:56:24.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-14T02:32:37.000Z (almost 9 years ago)
- Last Synced: 2025-02-26T05:26:37.941Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pre-release - pre-alpha - untested
---
# PaySimple community library for Node.js
This is an unofficial library.
PaySimple documentation can be found on their website:
http://developer.paysimple.com/documentation/
Read the [PaySimple docs](http://developer.paysimple.com/documentation/)
to learn which body parameters required for each method.
Pull requests welcome. Please write tests and ensure the
PR conforms to the JSCS and JSHint standards.
```bash
npm run jscs
npm run jshint
```
# Usage
```javascript
var PaySimple = require('paysimple');
var pay = new PaySimple({ accessid: 'kasjdflkasjd', key: '023i49sdfkl32' });
pay.setDevmode(); // to use the sandbox endpoint
```
## Debugging the library and HTTP traffic
Running with the environment variable `DEBUG=pay*` will print the HTTP
requests and responses.
For example, if your application is `app.js`:
```bash
DEBUG=pay* node app.js
```
# Testing
```bash
cp test/credentials.example.json test/credentials.json
```
Then add your credentials to `./test/credentials.json`.
This file is excluded from source control.
## Running the tests
```bash
npm run unit
npm run functional
npm test # everything
```
## Debugging the tests
Run with `DEBUG=pay*` environment variable.
```bash
DEBUG=pay* npm test
```