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)


6
7
8
# File 'app/models/spree/gateway/eway.rb', line 6

def auto_capture?
  true
end

#options_with_test_preferenceObject



14
15
16
# File 'app/models/spree/gateway/eway.rb', line 14

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

#provider_classObject



10
11
12
# File 'app/models/spree/gateway/eway.rb', line 10

def provider_class
  ActiveMerchant::Billing::EwayGateway
end