wipay-node

    1.0.4 • Public • Published

    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 : "", // "abc@xyz.com"
        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 amansharma5@hotmail.com

    Install

    npm i wipay-node

    DownloadsWeekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    4.43 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar