Giter VIP home page Giter VIP logo

easypayway's Introduction

This Package is not affiliated by EasyPayWay and has not been tested with testing tools. Thus use it on your own risk. You are welcomed to fork as of your requirement.

EasyPayWay requires few parameters to generate an unique URL , that generated URL does all the transaction related tasks and responds back to you in a specified url ( chosen by you) with some data. Then it's upto you what do you want to do with the response data.

USAGE:

The required parameters are broken into 5 chunk. merchant,user, url, amount and options.

An example of using this package.

  var merchant = {
    store_id: 'xxx',
    tran_id: 'unique tran id,
    success_url: 'yourdomain.com/success',
    fail_url:'yourdomain.com/fail',
    cancel_url:'yourdomain.com/cancel',
    currency:'BDT',
    signature_key:'Provided signature key'

  };
  
  var user = {
    name:'name',
    email:'[email protected]',
    address:'xxx',
    city:'zzzz',
    states:'qqq',
    post:111,
    country:'BD',
    phone:123

  };
  
   var amount = 100;
  var url = 'url will be provided';
  var options = ['1','2','3','4']; // maximum 4 options are allowed, to use this package you need to provide all of them even if you dont need all 
  

var parameters ={
  merchant: merchant,
  user: user,
  url: url,
  amount: amount,
  options : options
};

after you're all set with the parameters you need to call epwRecharge method in client asynchronously.

Meteor.call('epwRecharge',parameters,function(err,result){
    if(!err)
    {
      var trim = result.substr(1,result.length-2);
      window.location = trim;
    }
    else{

    }
  });

if everything is fine you will be redirected. any error should be visible either client or server.

easypayway's People

Contributors

faysal515 avatar foysalit avatar

Watchers

airbender avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.