Trusting a call you did not makeadvanced
A webhook endpoint is a public URL anyone can POST to; verifying the provider's HMAC signature before you read the payload is the only thing separating a real event from a forged one.
A public URL that trusts anything POSTed to it, holds the gateway open for three seconds, and hardcodes its secret.
A forged call gets 401 and changes nothing; a genuine one transitions the payment and returns quickly.
Published in full, before you start — every point is one of these and there is nothing else.
A webhook endpoint is a public URL anyone can POST to; verifying the provider's HMAC signature before you read the payload is the only thing separating a real event from a forged one.
A hardcoded API secret is a secret in your git history; IOptions<T> binds configuration into a typed object your code asks for like anything else.
IQueryable lets you build a query in pieces and send one efficient SQL statement — the classic mistake is fetching every row into memory and filtering there.
A proxy in front of a paid API needs a rate limit or one user can spend your whole budget, and a cancellation token so a closed browser tab stops the work.