Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Stripe; | |
var builder = WebApplication.CreateBuilder(args); | |
var app = builder.Build(); | |
app.MapPost("/webhook", async (HttpRequest request) => | |
{ | |
var json = await new StreamReader(request.Body).ReadToEndAsync(); | |
const string signingSecret = "whsec_..."; |