Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Created September 26, 2010 14:30
Show Gist options
  • Select an option

  • Save jamescarr/597971 to your computer and use it in GitHub Desktop.

Select an option

Save jamescarr/597971 to your computer and use it in GitHub Desktop.
var braintree = require("paynode").use("braintree");
var gateway = braintree.connect({
environment: braintree.Environment.Sandbox,
merchantId: 'your_merchant_id',
publicKey: 'your_public_key',
privateKey: 'your_private_key'
});
gateway.transaction.sale({
'amount': '5.00',
'creditCard': {
'number': '5105105105105100',
'expirationDate': '05/12'
}
},
function (err, response) {
// ...
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment