Skip to content

Commit

Permalink
πŸ“ Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Marthijn van den Heuvel committed Oct 18, 2024
1 parent 2a3b9c3 commit 2e7cc92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

0 comments on commit 2e7cc92

Please sign in to comment.