Skip to content

A plugin for Reaction Commerce that allows you to process payments using Braintree's payment processors

License

Notifications You must be signed in to change notification settings

boomerdigital/meteor-payments-braintree

Repository files navigation

meteor-braintree

Braintree Payment Platform integration for Reaction Commerce: A Reaction plugin that allow you to process payments using Braintree.

Documentation is available at https://developers.braintreepayments.com/.

This plugin is a community plugin and is not supported by the Reaction team.

Please use at your own risk. The Reaction team will not respond to issues or PR's on this but welcome the community to contribute.

How to install

  1. Navigate to <reaction-root>/imports/plugins/custom
  2. git clone [email protected]:reaction-contrib/meteor-braintree.git
  3. reaction reset

Configuration

Configuration can be performed by Administrators in the Reaction Dashboard.

It can also be done in private/settings/reaction.json by adding (or updating) the following configuration details (remember to fill in the blanks):

{
  "name": "reaction-braintree",
  "enabled": true,
  "settings": {
    "merchant_id": "",
    "public_key": "",
    "private_key": ""
  }
}

Accepted Payment Methods

  • All major credit cards: Visa®, MasterCard®, American Express®, Discover®, Diner's Club, JCB
  • Signature Debit Cards

Note: Actual payment method support will vary by country.

Based on the accepted payment methods, Braintree's default schema for credit card numbers will allow between 12 - 19 numbers. This can be changed in <reaction-root>/imports/plugins/custom/meteor-braintree/lib/collections/schemas/package.js depending on your needs.

Transactions

  • authorize

Authorization holding times differ depending on the method of payment: American Express® (7 days), Visa® & MasterCard® (10 days), and all other methods (30 days). If the payment is not captured in this time period, the funds will be released.

  • capture

Captures of an authorized charge can be made in any amount equal to or less than the original authorization, unless your industry (i.e. tipping in restaurants) or individual account is authorized otherwise. Only the captured amount will be seen on the customers statement. Captures take up to 24 hours to process, and no other actions on this transaction can occur during this time period.

If a customer is given a 100% discount prior to capturing, the charge will appear as voided.

  • refund

Refunds are allowed up to 100% of the captured amount, in one of more separate refund transactions.

  • refunds (list)

A list of all refunds, processed through Reaction or the Braintree UI.

Testing

  • Credit card number : 4242424242424242
  • Expiration date: Any date in the future
  • CVV2: Any 3 numbers

Braintree takes up to 24 hours to perform the capture process of a payment. Refunds are not allowed to be initiated until after the payment is fully processed. For testing purposes, Braintree allows you to bypass the 24 hour waiting period by adding the following code at the end of the gateway.transaction.submitForSettlement function in <reaction-root>/imports/plugins/custom/meteor-braintree/server/methods/braintreeApi.js:

gateway.testing.settle(transactionId, function (err, settleResult) {
  settleResult.success;
  settleResult.transaction.status;
});

About

A plugin for Reaction Commerce that allows you to process payments using Braintree's payment processors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •