v4: ingest signed relay notifications - #49
Merged
Conversation
Phloraxx
force-pushed
the
v4/observation-matching
branch
from
September 1, 2026 04:24
765494f to
a802b78
Compare
Phloraxx
force-pushed
the
v4/signed-relay-ingestion
branch
from
September 1, 2026 04:24
4aa4463 to
a31df19
Compare
Phloraxx
marked this pull request as ready for review
September 1, 2026 05:28
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.
Scope
Seventh stacked PayGate v4 implementation slice. Depends on PR #48.
Implements
METHOD + path + timestamp + SHA256(raw body)with a 5-minute tolerancePOST /api/v4/relay/eventslast_seen_atrelay_eventsrow and normalizes provider wording server-side.00/ unrelated notifications are stored as ignored Activity, never matchedserver_received_atconfidence rather than being trustedreceivedrelay rows can be safely resumed on retryTests
End-to-end tests cover signed Paytm→paid, duplicate event idempotency, invalid signature, stale timestamp, tampered body, unsupported GPay,
.00ignore, pre-enrollment ignore, retrying a previously storedreceivedevent, and signed Kotak-through-Google-Messages→paid. Fullinternal/v4/...unit tests, race tests, vet and diff checks pass locally.Safety
Still no production HTTP route registration and no Android rollout. This is an isolated v4 service package.