flyingfisher / umpay

client for umpay on nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-umpay

This is an implementation for UMPAY private version.

Now the project passed basic test. But it is not fully tested.

This project is write in Typescript 1.4.

File sample.ts is example code. File index.js is the entry.

Api:

   Available options:
{
   	spId:"xxx",
    merId:"xxx",
    heartbeatTimeout:180*1000,
    priKeyPath:"path/prikey",
    latestOrderIdHolder: {
        file:"./orderHolder",
        limit:100
    },
    goodsId:{
        //amount=goodsId        
    }
}

P.S. all option in constructor can be emitted.

latestOrderIdHolder: hold pay order detail, because you need orderId and amount to refund.

You can open sample.ts to see detail.

I will be pleasure if this helps.

About

client for umpay on nodejs


Languages

Language:JavaScript 63.8%Language:TypeScript 36.0%Language:Batchfile 0.2%