File: examples/notification-details.js

Recommend this page to a friend!
  Classes of Edvaldo Szymonek  >  PagSeguro Node.js  >  examples/notification-details.js  >  Download  
File: examples/notification-details.js
Role: Example script
Content type: text/plain
Description: example
Class: PagSeguro Node.js
Process payments using UOL PagSeguro
Author: By
Last change: Updating examples
Date: 1 year ago
Size: 392 bytes
 

Contents

Class file image Download
var PagSeguro = require('../index'); var pagseguro = PagSeguro({ email: 'edvaldoszy@gmail.com', token: 'ACCESS_TOKEN', mode: 'sandbox', debug: true }); pagseguro.notification('NOTIFICATION_CODE') .then(response => { console.log('Success'); console.log(response); }).catch(error => { console.log('Error'); console.error(error); });