Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A slice for interfacing with braintree's transparent redirect stuff in a merb app

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 spec
Octocat-spinner-32 stubs
Octocat-spinner-32 tasks
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO

A slice for the Merb framework that lets you store shit securely in Braintree's
vault (
You get tokens for user's sensitive info and you can charge against those
tokens.  The information is securely stored in Braintree's vault to allow you
to charge against credit cards without having ANY sensitive information pass
through your controller actions or logs.  It's quite cool.


% grep braintree_transparent_redirect config/*.rb
dependency "braintree_transparent_redirect_slice", "="

# example: /:controller/:action/:id

# example: /billing/controller/:action/:id
add_slice(:braintree_transparent_redirect_slice, :name_prefix => nil, :path_prefix => "billing")

Normally you should also run the following rake task:
rake slices:braintree_transparent_redirect_slice:install

* actually work, as in all specs passing
* sanitize and abstract the braintree models into a gem you can use outside of merb
* hook into merb-auth so you can associate vault items into more than just the user.
  i.e. instance method on the session perhaps
* support bank account info, not just credit cards

% thor merb:gem:install
% cp config/braintree.yml-example config/braintree.yml
% bin/rake
Something went wrong with that request. Please try again.