easy-sewa

easy-sewa: making esewa v2 payment easier.

Installation

npm install @prasuco/easy-sewa 

Usage

Importing

import { EasySewa} from '@prasuco/easy-sewa';

Instantiating

const easySewa = new EasySewa({
    environment: "development",
    failure_url: "http://localhost:3000/failure",
    success_url: "http://localhost:3000/success",
    product_code: "EPAYTEST",
    secret: "8gBm/:&EnhH.1/q"
})

Payment

easySewa.pay({ amount: 200, transaction_uuid: "232323232323" })

This package has not been tested in production using the production merchant codes of esewa.