feat: add Tempo relay support - #16
Merged
bensandler-stripe merged 6 commits intoAug 7, 2026
Merged
Conversation
parvahuja
marked this pull request as ready for review
August 5, 2026 21:28
parvahuja
commented
Aug 6, 2026
- share one canonical credential envelope (Credential.toEnvelope) between Authorization serialization and the relay body; omit empty source like the reference SDKs - narrow Verify.assertCredential to provenance and expiry; the charge path keeps the request/opaque expectation checks, standalone lifecycle calls no longer compare the echo against itself - add MppHandler.challenge(ChargeRequest); the example uses it and the now public TempoDefaults token constants instead of a hardcoded address - relay: build the validate+broadcast body once, fold the success check into post(), precompute endpoint URIs, digest idempotency keys with BouncyCastle (web3j returns to test scope), forward insufficient_funds as a safe details code, and fail malformed challenge requests as a PaymentException instead of a raw parse error - Intent.validate/broadcast defaults throw UnsupportedOperationException: calling them on a verify-only intent is a wiring error, not a payer failure
parvahuja
force-pushed
the
parv/tempo-relay-support
branch
from
August 6, 2026 17:29
66e8684 to
2639669
Compare
parvahuja
commented
Aug 7, 2026
parvahuja
commented
Aug 7, 2026
parvahuja
commented
Aug 7, 2026
parvahuja
commented
Aug 7, 2026
parvahuja
commented
Aug 7, 2026
parvahuja
commented
Aug 7, 2026
parvahuja
commented
Aug 7, 2026
parvahuja
commented
Aug 7, 2026
brendanjryan
reviewed
Aug 7, 2026
Contributor
|
@codex review |
brendanjryan
approved these changes
Aug 7, 2026
| ```java | ||
| TempoMethod tempo = TempoMethod.of() | ||
| .testnet() | ||
| .relay(System.getenv("TEMPO_API_KEY")) |
Contributor
|
Looks good to me also! |
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.
Why
Java servers need the same non-mutating credential validation and relay-backed Tempo charge flow as mppx.
What