0.1.0 • Published 8 years ago

h2io-braintree-server v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

H2io - Braintree server

Installation

npm install h2io-braintree-server

Usage

import Braintree from 'h2io-braintree-server';

const opts = {
  environment: 'development',
  merchantId: 'your_merchant_id',
  publicKey: 'your_public_key',
  privateKey: 'your_private_key'
};
const braintree = new Braintree(opts);

braintree.generateClientToken(cb);

const payOpts {
  amount: 1.00,
  payment_method_nonce: 'nonce-from-the-client',
};
braintree.pay(payOpts, cb);
0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago