From 2e7cc9241924cc05ee82609ebea5a2776866b54e Mon Sep 17 00:00:00 2001 From: Marthijn van den Heuvel Date: Fri, 18 Oct 2024 13:53:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Readme=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e51c8d8..f0636ae 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This package is currently in preview and is not yet feature complete. ## Webhooks * Capture the raw JSON and use the `IRevenueCatWebhookService` to parse the webhook data: ```csharp -private readonly IRevenueCatWebhookService _webhookService; +private readonly IRevenueCatWebhookService _webhookService = new RevenueCatWebhookService(); -var parseResult = _webhookService.TryParseSubscriptionEvent(request.Message.RawJson, out var subscriptionEvent); +var parseResult = _webhookService.TryParseSubscriptionEvent(rawJson, out var subscriptionEvent); ``` \ No newline at end of file