Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/workarea-commerce/workarea-braintree

ActiveMerchant Gateway and supporting classes for Braintree
https://github.com/workarea-commerce/workarea-braintree

Last synced: about 1 month ago
JSON representation

ActiveMerchant Gateway and supporting classes for Braintree

Awesome Lists containing this project

README

        

Workarea Braintree
================================================================================

Braintree plugin for the Workarea platform.

Getting Started
--------------------------------------------------------------------------------

Add the gem to your application's Gemfile:

```ruby
# ...
gem 'workarea-braintree'
# ...
```

Update your application's bundle.

```bash
cd path/to/application
bundle
```

Development Credentials
--------------------------------------------------------------------------------

Developers can sign up for a free developer account at https://www.braintreepayments.com/sandbox to acquire testing credentials and access to a Braintree control panel.

Secrets
--------------------------------------------------------------------------------

Most of the keys below can be found in the Braintree control panel under Account.
Merchant account id can be found under Settings -> Processing under the Merchant Accounts section.

Add secrets to your environemt

braintree:
merchant_id:
public_key:
private_key:
merchant_account_id:

Documentation & Methods
--------------------------------------------------------------------------------

Braintree Documentation:

Braintree Active Merchant Ruby Gateway:

Testing
--------------------------------------------------------------------------------

### Refund

A purchase, or captured authorization needs to be settled before it can be refunded. The
braintree sandbox settles at 7pm to mimic the production environment. A rake task is provided to
settle a transaction now for testing.

```bash
rake workarea:braintree:settle_test_transaction TRANSACTION_ID
```

Workarea Commerce Documentation
--------------------------------------------------------------------------------

See [https://developer.workarea.com](https://developer.workarea.com) for Workarea Commerce documentation.

License
--------------------------------------------------------------------------------

Workarea Braintree is released under the [Business Software License](LICENSE)