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