Class: Spree::Api::V2::Storefront::Adyen::BaseController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Api::V2::Storefront::Adyen::BaseController
show all
- Defined in:
- lib/spree_api_v2/spree/api/v2/storefront/adyen/base_controller.rb
Instance Method Summary
collapse
Instance Method Details
#adyen_gateway ⇒ Object
13
14
15
|
# File 'lib/spree_api_v2/spree/api/v2/storefront/adyen/base_controller.rb', line 13
def adyen_gateway
@adyen_gateway ||= current_store.adyen_gateway
end
|
#require_adyen_gateway ⇒ Object
9
10
11
|
# File 'lib/spree_api_v2/spree/api/v2/storefront/adyen/base_controller.rb', line 9
def require_adyen_gateway
render_error_payload('Adyen gateway is not present') unless adyen_gateway
end
|