Class: Mundipagg::Gateway

Inherits:
ActiveMerchant::Billing::Gateway
  • Object
show all
Defined in:
lib/mundipagg/gateway.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Gateway

Returns a new instance of Gateway.



3
4
5
6
# File 'lib/mundipagg/gateway.rb', line 3

def initialize(options={})
  requires! options, :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