Skip to content

DNM: Example A: stripe() composite method - #720

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

DNM: Example A: stripe() composite method#720
bensandler-stripe wants to merge 1 commit into
wevm:mainfrom
bensandler-stripe:bensandler/new-stripe-abstraction-mppx

Conversation

@bensandler-stripe

Copy link
Copy Markdown
Contributor

Adds a new top-level async stripe() function that configures all Stripe-supported MPP payment methods from a single config object.

  • 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 via transaction_verification for unified Dashboard accounting
  • Supports additional networks (Base, Solana, etc.) via additional array with deduplication by network name
  • Returns typed tuple [TempoServer, SptServer, ...additional] so Mppx.create can infer method keys for typed compose calls
  • Throws if required deposit address resolution fails
  • Renames stripe.charge to stripe.spt (deprecates old name)

Usage:
const mppx = Mppx.create({ methods: [await stripe({ secretKey: 'sk_...', profileId: '...' })], })

Adds a new top-level async `stripe()` function that configures all
Stripe-supported MPP payment methods from a single config object.

- 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
  via transaction_verification for unified Dashboard accounting
- Supports additional networks (Base, Solana, etc.) via `additional`
  array with deduplication by network name
- Returns typed tuple [TempoServer, SptServer, ...additional] so
  Mppx.create can infer method keys for typed compose calls
- Throws if required deposit address resolution fails
- Renames stripe.charge to stripe.spt (deprecates old name)

Usage:
  const mppx = Mppx.create({
    methods: [await stripe({ secretKey: 'sk_...', profileId: '...' })],
  })

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@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@720

commit: 3c0dfb5

@bensandler-stripe bensandler-stripe changed the title feat(stripe): add opinionated stripe() composite method DNM: stripe() composite method Jul 28, 2026
@bensandler-stripe bensandler-stripe changed the title DNM: stripe() composite method DNM: Example A: stripe() composite method 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