Skip to content

ThomasFlorelli/cmcic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== How-to use

var cmcic = require('cmcic');

var tpe = new cmcic.tpe({
	CMCIC_TPE: 'tpeid',
	CMCIC_CODESOCIETE: 'societykey',
	CMCIC_CLE: '1234567890abcdef',
	CMCIC_BANK: 'CIC',
	CMCIC_LNG: 'FR',
	CMCIC_CURRENCY: 'EUR',
	CMCIC_URL_RETOUR: "/url/return",
	CMCIC_URLOK: "/url/ok",
	CMCIC_URLKO: "/url/ko"
});

var t = {
	date: "12/12/12",
	amount: "300EUR",
	reference: "qwerty"
};

var trans = new cmcic.transaction(tpe, t);

// if you use expressjs

res.send(trans.form('paimentid', true));

About

A node module for cmcic payments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published