Skip to content

CotalkerPartners/puntopagos-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INSTALLATION

node.js

npm install puntopagos-node

HOW TO USE

var puntoPagos = require('puntopagos-node');

// Config current deployment mode.
puntoPagos.config('PUNTOPAGOS_KEY_CONFIG', 'PUNTOPAGOS_SECRET_CONFIG') 

// Create payment
puntoPagos.pay(puntoPagos.generateId(), amont, puntoPagos.paymentMethod.webpay, callback);
// err, data -> {token:token, redirect:redirect}

// Validate payament
puntoPagos.validate(token, generated_id, amount, callback);
// err, data

DEVELOPMENT

For sandbox mode ser enviorment var PUNTOPAGOS to 'debug'

PUNTOPAGOS=debug node app.js 

PuntoPagos Documentation

Oficial documentation

About

puntopagos.com integration for node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •