Class: Spree::Api::Webhook::OrdersController
- Inherits:
-
BaseController
- Object
- V2::ResourceController
- BaseController
- Spree::Api::Webhook::OrdersController
- Defined in:
- app/controllers/spree/api/webhook/orders_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
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]) @order render json: @order.send(:webhook_payload_body), status: status, content_type: content_type end |