public async Task <IActionResult> PaymentEvent(CancellationToken token) { using var streamReader = new StreamReader(HttpContext.Request.Body); string json = await streamReader.ReadToEndAsync().ConfigureAwait(false); string signature = Request.Headers["Stripe-Signature"]; await donationService.LogPaymentEvent(json, signature, token).ConfigureAwait(false); return(Ok()); }