Skip to content

feat(stripe): automatically record Tempo session settlements - #892

Draft
ksn-stripe wants to merge 3 commits into
wevm:mainfrom
ksn-stripe:ksn-stripe/stripe-session-paymentintents
Draft

ksn-stripe wants to merge 3 commits into
wevm:mainfrom
ksn-stripe:ksn-stripe/stripe-session-paymentintents

Conversation

@ksn-stripe

@ksn-stripe ksn-stripe commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Tempo session settlements need to be recorded as Stripe PaymentIntents. This connects confirmed settlement deltas to the same recorder used by one-time Tempo payments, automatically creating transaction-verification PIs through both tempo.session() and defaultMethods().additional().

Each transaction's delta is rounded down to whole cents; zero/sub-cent amounts are skipped. Recording includes mpp_intent=session, and optional merchant settlement callbacks run afterward. The shared recorder's existing idempotency, routing, and metadata behavior are reused.

Scope is automatic PI creation and readily available basic data. Customer and metadata customization work, tax, receipt email, opening challenge ID, channel ID, and richer analytics are deferred to dedicated follow-on PRs.

Validation: 38 tests passed across Methods.test.ts and analytics.test.ts using a temporary isolated configuration with the repository aliases and without chain global setup. TypeScript, scoped lint/format, and diff checks passed. The default test configuration was blocked by the unavailable local Tempo node; no live payment was executed.

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@pkg-pr-new

pkg-pr-new Bot commented Sep 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@892

commit: 8acee9f

ksn-stripe and others added 2 commits September 14, 2026 14:32
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant