示例#1
0
        public async Task <IActionResult> Chargeable()
        {
            using var streamReader = new StreamReader(HttpContext.Request.Body);
            string json = await streamReader.ReadToEndAsync().ConfigureAwait(false);

            string signature = Request.Headers["Stripe-Signature"];

            donationService.HandleChargeable(json, signature);
            return(Ok());
        }