Skip to content

sameerwasim/jazzcash-checkout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jazzcash Checkout

JazzCash Checkout is a nodejs library which help you to integrate JazzCash in your node application.

Installation

Use the npm package manager to install JazzCash Checkout.

npm install jazzcash-checkout

Usage

const Jazzcash = require('jazzcash-checkout')

# initializes your jazzcash
Jazzcash.credentials({
  config: {
    merchantId: "", // Merchant Id
    password: "", // Password
    hashKey: "", // Hash Key
  },
  environment: 'sandbox' // available environment live or sandbox
});

# set jazzcash data fields according to your request
Jazzcash.setData({
  pp_Amount: 1 * 100,
  pp_BillReference: "billRef123",
  pp_Description: "Test Payment",
  pp_MobileNumber: "03123456789",
  pp_CNIC: "345678",
});

# returns jazzcash response
# REQUEST TYPES (PAY, WALLET, INQUIRY, REFUND)
Jazzcash.createRequest("WALLET").then((res) => {
  res = JSON.parse(res); // don't parse for PAY
  console.log(res);
});

Contributing

Pull requests are welcome. For significant changes, please open an issue first to discuss what you would like to change.

Extra

PHP Library: Jazzcash-php. (I was trying to find if someone made Jazzcash NodeJS library. I didn't found any but i did found PHP one.)

License

MIT

About

Payment method integration package for Jazzcash.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published