Skip to content

DNM: Example B: stripe() returns Mppx instance directly - #721

Draft
bensandler-stripe wants to merge 1 commit into
wevm:mainfrom
bensandler-stripe:bensandler/stripe-returns-mppx
Draft

DNM: Example B: stripe() returns Mppx instance directly#721
bensandler-stripe wants to merge 1 commit into
wevm:mainfrom
bensandler-stripe:bensandler/stripe-returns-mppx

Conversation

@bensandler-stripe

Copy link
Copy Markdown
Contributor

Alternative to Option A where stripe() returns a fully configured Mppx server instance instead of a methods array. No Mppx.create step needed by the consumer.

  • Always enables Tempo crypto and SPT (card/link) payments
  • Resolves deposit addresses from the Stripe API automatically
  • Wraps crypto verify to record payments as Stripe PaymentIntents
  • Derives mppSecretKey from Stripe key if not provided
  • Returns typed Mppx instance so compose works without casts
  • Supports additional networks via additional array

Usage:
const mppx = await stripe({ secretKey: 'sk_...', profileId: '...' }) await mppx.compose(['tempo/charge', {...}], ['stripe/charge', {...}])(req)

@pkg-pr-new

pkg-pr-new Bot commented Jul 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 7aa713d

Alternative to Option A where stripe() returns a fully configured
Mppx server instance instead of a methods array. No Mppx.create
step needed by the consumer.

- Always enables Tempo crypto and SPT (card/link) payments
- Resolves deposit addresses from the Stripe API automatically
- Wraps crypto verify to record payments as Stripe PaymentIntents
- Derives mppSecretKey from Stripe key if not provided
- Returns typed Mppx instance so compose works without casts
- Supports additional networks via `additional` array

Usage:
  const mppx = await stripe({ secretKey: 'sk_...', profileId: '...' })
  await mppx.compose(['tempo/charge', {...}], ['stripe/charge', {...}])(req)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@bensandler-stripe
bensandler-stripe force-pushed the bensandler/stripe-returns-mppx branch from 03ffca0 to 7aa713d Compare July 28, 2026 15:00
@bensandler-stripe bensandler-stripe changed the title DNM: stripe() returns Mppx instance directly (Option B) DNM: Example B: stripe() returns Mppx instance directly Jul 28, 2026
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