Class: Spree::Api::Webhook::OrdersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/api/webhook/orders_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
11
# File 'app/controllers/spree/api/webhook/orders_controller.rb', line 5

def show
  @order = Spree::Order.search_by_qr_data!(params[:id])

  authorized_subscriber! @order

  render json: @order.send(:webhook_payload_body), status: status, content_type: content_type
end