This is the official Braintree v.zero extension for Spree. It supports: * Braintree Hosted Fields - style the credit card form to match your UI with full PCI compliance * PayPal Express Checkout - the fastest way for buyers to pay with PayPal - available on Spree for the first time * Braintree Drop-in UI - start accepting payments ASAP
Behind-the-scenes, this extension uses Braintree Ruby SDK.
Add this extension to your Gemfile with this line:
gem 'spree_braintree_vzero', '~> 3.5'
gem 'spree_braintree_vzero', github: 'spree-contrib/spree_braintree_vzero', branch: 'X-X-stable'
branch option is important: it must match the version of Spree you're using.
For example, use
3-0-stable if you're using Spree
3-0-stable or any
Install the gem using Bundler:
Copy & run migrations
bundle exec rails g spree_braintree_vzero:install
Restart your server
If your server was running, restart it so that it can find the assets properly.
See wiki for more detailed documentation.
Additional to migrations the gem adds a cron task (via the Whenever gem) which is needed for updating transaction states from submited for settlement to settled (Braintree v.zero transaction states). To run on Heroku you have to add a task to Heroku Scheduler:
Recommended frequency is every 6 hours.
If you'd like to contribute, please take a look at the instructions for installing dependencies and crafting a good pull request.
We are passionate about open source software. We are available for hire.