payplus-node
v0.1.8
Published
payplus-node is a wrapper for PayPlus's SOAP API for payment processing and retainers
Downloads
19
Readme
payplus-node
payplus-node is a Node.js wrapper for PayPlus' payment processing and retainer SOAP API
PayPlus' website: http://www.payplus.co.il/
Installation
Install using npm:
npm install payplus-node
Usage
1. Obtain a client
const PayPlus = require('payplus-node');
PayPlus.generateClient(options, function(err, client) {
// Your code here
});
options
object must contain these strings:
username
: PayPlus terminal usernamepassword
: PayPlus terminal passwordcashierNum
: PayPlus assigned cashier numbermerchantNum
: PayPlus assigned merchant number
2. Invoking methods
Once a client is obtained, it exposes all the available methods:
PayPlus.generateClient(options, function(err, client) {
// ...
client.storeCard(cardNum, expMonth, expYear, function(err, result) {
console.log(result.token); // Obtained UUID for the stored information
})
});
Todo
- [ ] Finish writing all tests
- [ ] Write documentation for available payments processing and retainer methods
License
Copyright 2018 Miki Mendelson-Mints
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.