1.0.7 • Published 4 years ago

node-ippopay v1.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

Ippopay Node SDK

npm

Official nodejs library for Ippopay API.

Check this link for detailed information to inteagrate Ippopay Node JS SDK: https://docs.ippopay.com/node-js-sdk

Installation

npm i node-ippopay

Documentation

Documentation of Ippopay's API is available at https://docs.ippopay.com/node-js-sdk

Basic Usage

Initiate the Ippopay instance with public_key & secret_key. You can get the keys from the merchant dashboard (https://app.ippopay.com/settings/api)

const Ippopay = require("node-ippopay");

var ippopay_instance = new Ippopay({
  public_key: 'YOUR_PUBLIC_KEY',
  secret_key: 'YOUR_SECRET_KEY',
});

Create an Order

ippopay_instance.createOrder({
    amount: 10.00, 
    currency: 'INR',
    payment_modes: "cc,dc,nb,upi",
    customer: {
        name: "Test",
        email: "test@gmail.com",
        phone: {
            country_code: "91",
            national_number: "9876543210"
        }
    },
    notify_url: 'Your_WebHook_Url'
}, function (err, data){
   console.log(data);
});

Get Transaction Details of Order

ippopay_instance.orderTransactionDetails({
    orderId: 'ORDER_ID'
}, function (err, data){
   console.log(data);
});

Author

This component is written by IppoPay.

License

IppoPay 2021 © All Rights Reserved. IppoPay

1.0.7

4 years ago

1.0.6

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago