Class: Gateway::CobreBemAprovaFacil

Inherits:
Gateway
  • Object
show all
Defined in:
app/models/gateway/cobre_bem_aprova_facil.rb

Instance Method Summary collapse

Instance Method Details

#optionsObject



8
9
10
11
12
13
14
15
16
17
# File 'app/models/gateway/cobre_bem_aprova_facil.rb', line 8

def options
  # add :test key in the options hash, as that is what the ActiveMerchant::Billing::AuthorizeNetGateway expects
  if self.prefers? :test_mode
    self.class.default_preferences[:test] = true
  else
    self.class.default_preferences.delete(:test)
  end

  super
end

#provider_classObject



4
5
6
# File 'app/models/gateway/cobre_bem_aprova_facil.rb', line 4

def provider_class
  ActiveMerchant::Billing::AprovaFacilGateway
end