Class: Gateway::Eway

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

Instance Method Summary collapse

Instance Method Details

#auto_capture?Boolean

Note: EWay supports purchase method only (no authorize method).

Returns:

  • (Boolean)


8
9
10
# File 'app/models/spree/gateway/eway.rb', line 8

def auto_capture?
  true
end

#options_with_test_preferenceObject



16
17
18
# File 'app/models/spree/gateway/eway.rb', line 16

def options_with_test_preference
  options_without_test_preference.merge(:test => self.preferred_test_mode)
end

#provider_classObject



12
13
14
# File 'app/models/spree/gateway/eway.rb', line 12

def provider_class
  ActiveMerchant::Billing::EwayGateway
end