Skip to content

A way to include Mercado Pago (Argentinian/Brazilian) payment method in Spree.

License

Notifications You must be signed in to change notification settings

pablo-pereira/spree_mercado_pago

 
 

Repository files navigation

Spree Mercado Pago Payment Method

Integration of Mercado Pago with Spree 2.3 and 2.4

For Spree 1.3 - Take a look a spree-1.3 branch
For Spree 1.2 - Take a look a spree-1.2 branch

Installation

gem 'spree_mercado_pago', git: "git@github.com:manuca/spree_mercado_pago.git"

inside your project run

bundle exec rails g spree_mercado_pago:install

to import assets and migrations.

Usage

  • Add a new payment method in the admin panel of type Spree::PaymentMethod::MercadoPago
  • After adding the payment method you will be able to configure your Client ID and Client Secret (provided by Mercado Pago).

IPN

For IPN you need to configure the notification URL in Mercado Pago's site. The notification URL will be http[s]://[your_domain]/mercado_pago/ipn. Please review Mercado Pago's documentation at http://developers.mercadopago.com/ for the correct place where to configure IPN notification URLs.

Pending Work

  • Configurable currency

Testing

  • clone this repo
  • execute bundle
  • execute rake test_app to build a dummy app directory inside specs
  • execute bundle exec rspec spec

About

A way to include Mercado Pago (Argentinian/Brazilian) payment method in Spree.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 94.8%
  • JavaScript 2.9%
  • HTML 2.1%
  • CSS 0.2%