Currently under active development.
Bundler - Gemfile
gem 'my_moip-rails'
Contributing
Any patch are welcome, even removing extra white spaces.
- Open a pull request.
- Done.
Do you need to perform an action when a payment is set as done (money already in your account)?
Create a controller inherited from MyMoipRails::PurchasesController
and set its route.
app/controllers/purchases_controller.rb
class PurchasesController < MyMoipRails::PurchasesController
def notification
done do
# Do whathever you want.
# Will be useful to check params[:valor] and params[:cod_moip]
end
super
end
end
config/routes.rb
post 'purchases/notification'
This project rocks and uses MIT-LICENSE.