Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 22a7430ede
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (33 sloc) 1.657 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
BraintreeTransparentRedirectSlice
=================================

A slice for the Merb framework that lets you store shit securely in Braintree's
vault (http://dev.braintreepaymentsolutions.com/vault/transparent-redirect/).
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.

------------------------------------------------------------------------------

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

------------------------------------------------------------------------------
# example: /:controller/:action/:id
slice(:BraintreeTransparentRedirectSlice)

# 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
------------------------------------------------------------------------------

Goals
-----
* 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

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