Skip to content

Commit c2bd818

Browse files
authored
Update webhooks documentation
1 parent a5be9f7 commit c2bd818

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)