DeFi University
Skip to lesson

Exercise 11

Testing & Security

About 15 min

Your task

Before shipping a shop to mainnet, you'll audit a webhook log by hand. For each delivery you'll decide whether it's forged, a repeat, a second event for something already done, or a "paid" message for something that isn't paid, and then count what a careless handler would have shipped. By the end you can test a handler against the four ways webhooks go wrong.

Time
20 minutes
You'll need
paper or a notes app
Builds on
Lesson 11

Warm-up

Check yourself

Why should a handler fetch the invoice from the provider's API instead of trusting the webhook body?

Check yourself

What does making fulfilment idempotent mean?

Members only

This course is for members.

The DeFi University membership on Skool opens all 31 courses here, plus the live calls and community. Private coaching clients have access too. Already a member? Sign in with your Skool email.