/spree_mercado_pago

spree_mercado_pago

Primary LanguageRubyBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

SpreeMercadoPago

Introduction goes here.

Installation

Add spree_mercado_pago to your Gemfile:

gem 'spree_mercado_pago'

Add spree_mercado_pago to your javascript file:

//= require spree/frontend/spree_mercado_pago

Add to ENV:

MERCADO_PAGO_APP_ID=99999999999999
MERCADO_PAGO_SECRET_TOKEN=SECRET-TOKEN

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_mercado_pago:install

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_mercado_pago/factories'

Copyright (c) 2014 [name of extension creator], released under the New BSD License