vspapi
A payment service for VSP
Last updated 5 years ago by ra9r .
Repository · Original npm · Tarball · package.json
$ cnpm install vspapi 
SYNC missed versions from official npm registry.

VSPAPI facilitates the use of the vSecure Processing web services within a Node application. To use these services you will need to setup your own developer account at vSP Developer Portal and sign a non-disclosure agreement.

Setting Up a Context

Setting up the vspapi is very simple. Once your have signed up with the developer portal you will be assigned your own GID and other assorted values which are used to setup the initail context for the api.

Context Parameters

Property Type Required Description
gid String This value is unique to the developer. One must be created for you by vSecure Processing.
platform String Optionally override the default "Buypass" platform value.
url String Optionally override the default base URL for the vSP web services
tid String Optionally set a Terminal ID ("01" by default)
appId String The ID of your application. This value may be assigned to you by vSP
userId String The user ID of the developer as registered with vSP

Example Usage

var api = require('vspapi');

var ctx = {
    gid:"xxxxxxxxxxxxxxx",
    appId:"xxxxx",
    userId:"info@someplace.com"
};

api.config(ctx);

See Also

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

7 Versions

  • 0.1.0                                ...           5 years ago
  • 0.0.9                                ...           5 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |