BraintreeTransactionGateway encapsulates access to Braintree's transaction API.
Instrumentation is provided by ActiveSupport::Notifications
.
This library is currently undergoing development and has not been released as a gem. Add this line to your application's Gemfile:
gem 'braintree_transaction_gateway', github: 'everydayhero/braintree_transaction_gateway'
And then execute:
$ bundle
BraintreeTransactionGateway.configure do |config|
config.environment = "sandbox"
config.merchant_id = "your_merchant_id"
config.public_key = "your_public_key"
config.private_key = "your_private_key"
end
braintree = BraintreeTransactionGateway.new
braintree.charge options
- Fork it (http://github.com/everydayhero/braintree_transaction_gateway/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request