Class: Gateway::CobreBemAprovaFacil
- Inherits:
-
Gateway
- Object
- Gateway
- Gateway::CobreBemAprovaFacil
- Defined in:
- app/models/gateway/cobre_bem_aprova_facil.rb
Instance Method Summary collapse
Instance Method Details
#options ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'app/models/gateway/cobre_bem_aprova_facil.rb', line 8 def # 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_class ⇒ Object
4 5 6 |
# File 'app/models/gateway/cobre_bem_aprova_facil.rb', line 4 def provider_class ActiveMerchant::Billing::AprovaFacilGateway end |