This library provides an easy integration with Mundipagg services in Ruby.
If your use Rails, create a file in initializer containing following code:
PaymentGateway::Mundipagg.configure do |config|
config.access_key = "your-access-key-here"
end
Or else configure it manually.
require 'payment_gateway/mundipagg/plan'
mundipagg_plan = PaymentGateway::Mundipagg::Plan.new
mundipagg_plan.list # Lists all registered plans
All methods receives a hash as described in Mundipagg docs (https://docs.mundipagg.com/reference) and returns parsed gateway responses also as described in the docs in ruby Hash format.
Methods:
- list
- create
- destroy
- list
- create
- destroy
- show
- list
- create
- list
- create
- create_from_plan
- cancel
- list
- create
MIT License. Copyright 2017 Felipe G. Hespanhol