
Product
Socket Now Available on Google Cloud Marketplace
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
A Node.js library to integrate with eWAY's Rapid Payment API.
Sign up with eWAY at:
For testing, get a free eWAY Partner account: https://www.eway.com.au/developers
$ npm install eway-rapid
See the eWAY Rapid API Reference for usage details.
A simple Direct payment example:
var rapid = require('eway-rapid');
var key = '60CF3Ce97nRS1Z1Wp5m9kMmzHHEh8Rkuj31QCtVxjPWGYA9FymyqsK0Enm1P6mHJf0THbR',
password = 'API-P4ss',
endpoint = 'sandbox';
var client = rapid.createClient(key, password, endpoint);
client.createTransaction(rapid.Enum.Method.DIRECT,{
"Customer": {
"CardDetails": {
"Name": "John Smith",
"Number": "4444333322221111",
"ExpiryMonth": "12",
"ExpiryYear": "25",
"CVN": "123"
}
},
"Payment": {
"TotalAmount": 1000
},
"TransactionType": "Purchase"
}).then(function (response) {
if (response.get('TransactionStatus')) {
console.log('Payment successful! ID: ' + response.get('TransactionID'));
}
});
Please see CHANGELOG for more information what has changed recently.
This library can be tested using npm:
$ npm install
$ npm test
Integration tests can also be run - first copy .env.dist to .env and add your eWAY Sandbox API Key & Password. Then run:
$ npm run test:integration
The MIT License (MIT). Please see License File for more information.
FAQs
eWAY Rapid Node.js library
The npm package eway-rapid receives a total of 1,224 weekly downloads. As such, eway-rapid popularity was classified as popular.
We found that eway-rapid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.