0.0.3 • Published 9 years ago

postfinance-simple v0.0.3

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

#Come back later, this is not ready yet

postfinance-simple

Simple integration of Postfinance PSP into node and javascript

##Installation

npm i --save postfinance-simple

##Usage

var Postfinance = require('postfinance-simple');
var server = new Postfinance({
    pspid: "myPSPID",
    sha_in: "myTerriblySecretSecret124!",
    isTest: true //set to false in production
});

var html = server.getFormHTML({
    PSPID: "myPSPID", //I can set the PSPID also here
    ORDERID: "123456789",
    AMOUNT: 1000,
    CURRENCY: "CHF",
    LANGUAGE: "en_US"
    //insert other non mandatory params here
}, 
//optionally I can specify id and name of the form 
{
    id: "checkoutForm",
    name: "checkout"
});
0.0.3

9 years ago

0.0.2

9 years ago

0.0.0

9 years ago