Skip to content

Commit 8c351c1

Browse files
authored
Merge pull request #1289 from Shopify/jsaubry-patch-1
Update webhooks documentation
2 parents a5be9f7 + c2bd818 commit 8c351c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/webhooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ If you want to register for an http webhook you need to implement a webhook hand
1818

1919
```ruby
2020
module WebhookHandler
21-
extend ShopifyAPI::Webhooks::Handler
21+
extend ShopifyAPI::Webhooks::WebhookHandler
2222

2323
class << self
24-
def handle_webhook(data)
24+
def handle_webhook(data:)
2525
puts "Received webhook! topic: #{data.topic} shop: #{data.shop} body: #{data.body} webhook_id: #{data.webhook_id} api_version: #{data.api_version"
2626
end
2727
end

0 commit comments

Comments
 (0)