Skip to content

Add Creem and expanded Stripe billing emulation - #194

Open
Ansonhkg wants to merge 3 commits into
vercel-labs:mainfrom
Ansonhkg:codex/yaphaus-billing-emulators-tested
Open

Add Creem and expanded Stripe billing emulation#194
Ansonhkg wants to merge 3 commits into
vercel-labs:mainfrom
Ansonhkg:codex/yaphaus-billing-emulators-tested

Conversation

@Ansonhkg

Copy link
Copy Markdown

What changed

  • Add a stateful Creem Test Mode emulator with hosted checkout, signed webhooks, subscriptions, cancellation, seed configuration, inspector UI, package documentation, and CLI registry support.
  • Expand Stripe emulation for recurring prices, subscription checkout, richer checkout session responses, payment intents, invoices, subscription lifecycle routes, and versioned webhook events.
  • Extend shared checkout and webhook helpers used by the billing emulators.
  • Add Creem documentation to the repository README, agent skill, and docs website.
  • Add focused Creem and Stripe tests for the supported billing flows.

Why

Applications need realistic local billing flows without sending requests to Stripe or Creem. The existing Stripe emulator did not model the subscription response shapes and lifecycle events required by YapHaus, and Creem was not available as an emulated service.

Impact

Developers can run subscription checkout, webhook delivery, retrieval, and cancellation locally using test state. No real payment is processed.

Validation

  • pnpm --filter @emulators/creem... build
  • pnpm --filter @emulators/stripe... build
  • pnpm --filter @emulators/creem test with 2 tests passing
  • pnpm --filter @emulators/stripe test with 23 tests passing
  • pnpm --filter @emulators/creem type-check
  • pnpm --filter @emulators/stripe type-check
  • git diff --check upstream/main...HEAD
  • Leak audit result: Safe to publish

Signed-off-by: ansonhkg <Ansonhkg@users.noreply.github.com>
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

@Ansonhkg is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@Ansonhkg
Ansonhkg marked this pull request as ready for review July 31, 2026 11:13
Comment thread packages/@emulators/stripe/src/routes/checkout-sessions.ts Outdated
Ansonhkg added 2 commits July 31, 2026 12:35
Signed-off-by: ansonhkg <Ansonhkg@users.noreply.github.com>
Signed-off-by: ansonhkg <Ansonhkg@users.noreply.github.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