docs(webhooks): critical-path callout and Rust signature example#88
Open
Cali93 wants to merge 1 commit into
Open
docs(webhooks): critical-path callout and Rust signature example#88Cali93 wants to merge 1 commit into
Cali93 wants to merge 1 commit into
Conversation
- Add a top-of-page warning: never gate a payment's outcome on receiving a webhook; webhooks are a notification layer, not the system of record (Riaz's feedback, backed by Stripe/Shopify/ Coinbase precedents) - Restructure webhooks vs. polling into the three-layer pattern: polling as source of truth, webhooks for speed, reconciliation as backstop - Add a Rust signature verification example (hmac/sha2/base64 crates; Rust stdlib has no crypto), validated against the test vector - Note the Rust crate exception in the agent prompt Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Cali93
marked this pull request as ready for review
July 22, 2026 14:15
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #87 with two changes:
1. Critical-path callout (Riaz's feedback). A
Warningat the top of the page: never gate a payment's outcome on receiving a webhook. Webhooks are a fast notification layer, not the system of record; delivery is best-effort and can be late, duplicated, out of order, or missing entirely. The webhooks vs. polling section is restructured into the three-layer pattern the major providers (Stripe, Shopify, Coinbase Commerce) document: polling as source of truth, webhooks for speed, periodic reconciliation as backstop. Wording keeps the contract facts from #87 review: the event payload is a full versioned snapshot, so no API call is needed inside the handler.2. Rust signature example. Added to the verification code group. Rust's standard library has no crypto, so it uses the
hmac,sha2, andbase64crates (noted in the intro line and the agent prompt). Validated against the Svix test vector: correct signature accepted, altered body rejected, second-of-multiple entries matched; comparison is constant-time viaMac::verify_slice.Linear: WCPM-530
🤖 Generated with Claude Code