We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38c55af + 832c168 commit 42e1275Copy full SHA for 42e1275
1 file changed
docs/usage/webhooks.md
@@ -21,8 +21,9 @@ module WebhookHandler
21
extend ShopifyAPI::Webhooks::WebhookHandler
22
23
class << self
24
- def handle_webhook(data:)
25
- puts "Received webhook! topic: #{data.topic} shop: #{data.shop} body: #{data.body} webhook_id: #{data.webhook_id} api_version: #{data.api_version"
+ def handle(data:)
+ puts "Received webhook! topic: #{data.topic} shop: #{data.shop} body: #{data.body} webhook_id: #{data.webhook_id} api_version: #{data.api_version}"
26
+ perform_later(topic: data.topic, shop_domain: data.shop, webhook: data.body)
27
end
28
29
0 commit comments