vanillapay

1.0.81 • Public • Published

VanillaPay

For using vanilla pay NodeJs Module

Inside your project folder run

$ npm install --save vanillapay
 
var VanillaPay = require('vanillapay');
// get Paiment instance.
var vanillapay = new VanillaPay(your_site_url,client_id,client_secret,public_key,private_key);
 

To unit payment processing

 
vanillapay.initPaie(idpanier,montant,nom,reference,adresseip,function(idpayment){
    //idpaiement is your payment id (crypted) that you need if you want to get payment result
    console.log(idpayment);
},function(error){
    console.log(error);
});
//You will be redirect to VanillaPay payment and  follow it ;
 

To get payment result ;

 
//Getting payment result
vanillapay.resultPaie(idpayment,(result){
    console.log(result);
},function(error){
    console.log(error);
});

Digi-Talent

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.811latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.811
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.21
1.0.11
1.0.00

Package Sidebar

Install

npm i vanillapay

Weekly Downloads

3

Version

1.0.81

License

ISC

Unpacked Size

6.19 kB

Total Files

6

Last publish

Collaborators

  • tsiresy