Skip to content

Instantly share code, notes, and snippets.

@dmcaulay
Last active January 4, 2016 20:39
Show Gist options
  • Save dmcaulay/8675079 to your computer and use it in GitHub Desktop.
Save dmcaulay/8675079 to your computer and use it in GitHub Desktop.
example of configuring payments module
var config = require('config');
// require braintree implementation
var payments = require('payments-braintree');
// or require stripe implementation
var payments = require('payments-braintree');
// init
payments.config(config.payments);
module.exports = payments;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment