@glideco/mpp-adapter
v0.1.0
Published
Machine Payments Protocol (MPP) wire-format adapter for Glide. Encodes charge intents per the Tempo+Stripe spec (RFC 7235 'Payment' auth scheme, base64url JCS-canonicalized request, multi-method 402 challenges). Pure functions, no IO.
Downloads
65
Maintainers
Readme
@glideco/mpp-adapter
Machine Payments Protocol (MPP) wire-format adapter for Glide. Encodes charge intents per the Tempo + Stripe IETF draft draft-ryan-httpauth-payment (RFC 7235 Payment auth scheme + JCS-canonicalized request payload). Multi-method 402 challenges (Tempo, Solana, Lightning, Stripe).
Pure functions, no IO.
Install
npm install @glideco/mpp-adapterUsage
import {
buildMppChallenge,
serializeWwwAuthenticatePayment,
parseAuthorizationPayment,
} from '@glideco/mpp-adapter';License
MIT
Spec version
Pinned to MPP draft-mpp-v1-2026-04 (IETF draft draft-ryan-mpp-v1-2026-04). The wire scheme is RFC 7235 WWW-Authenticate: Payment / Authorization: Payment with JCS-canonicalized request payloads (per @glideco/schemas canonicalJson).
When the IETF draft becomes an RFC (or breaks compat at a draft revision), bump the version literal AND re-verify the serializeWwwAuthenticatePayment quoted-string escape behavior — RFC 7230 §3.2.6 changes around obs-text would affect us.
