wipay-node
v1.0.4
Published
The wipay-node library provides convenient access to the wipay API from applications written in server-side JavaScript.
Downloads
14
Maintainers
Readme
wipay NodeJs Wrapper
Wipay payment Integration
The wipay-node library provides convenient access to the wipay API from applications written in server-side JavaScript.
Documentation
See the Wipay API docs.
The package needs to be configured with Production Mode.
###Installation Install the package with:
npm install wipay-node
Include
var wipay = require('wipay-node');
Set Mode
wipay.ProductionMode(true); // production = true, test = false
APIs Available
Create new payment request Using async/await
var paymentData = {
total : "", // "100.00"
phone : "", // "0123456789"
email : "", // "[email protected]"
name : "", // "name"
order_id : "", // "12345"
return_url : "", //"http://localhost:8080/status"
developer_id : "", // developer_id from account or "1" for sandbox
}
let url = await wipay.create_payment(paymentData);
Test Credit Card
Card Number : 4111111111111111 Card CVV : 123 Expiry Month : 01 Expiry Year : 25
Submit Queries
You can mail an issue/query at [email protected]