Class: Mundipagg::Gateway
- Inherits:
-
ActiveMerchant::Billing::Gateway
- Object
- ActiveMerchant::Billing::Gateway
- Mundipagg::Gateway
- Defined in:
- lib/mundipagg/gateway.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Gateway
constructor
A new instance of Gateway.
- #purchase(amount, object) ⇒ Object
- #refund(amount, object) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Gateway
Returns a new instance of Gateway.
3 4 5 6 |
# File 'lib/mundipagg/gateway.rb', line 3 def initialize(={}) requires! , :merchant_key super end |
Instance Method Details
#purchase(amount, object) ⇒ Object
8 9 10 |
# File 'lib/mundipagg/gateway.rb', line 8 def purchase(amount, object) call amount, object, :create_order end |
#refund(amount, object) ⇒ Object
12 13 14 |
# File 'lib/mundipagg/gateway.rb', line 12 def refund(amount, object) call amount, object, :manage_order end |