Skip to content

Implement Stripe payment intents#711

Open
carpedkm wants to merge 2 commits into
SecureBananaLabs:mainfrom
carpedkm:codex/stripe-payment-intent
Open

Implement Stripe payment intents#711
carpedkm wants to merge 2 commits into
SecureBananaLabs:mainfrom
carpedkm:codex/stripe-payment-intent

Conversation

@carpedkm
Copy link
Copy Markdown

@carpedkm carpedkm commented May 26, 2026

Closes #1.

/claim #1

Summary

  • replaces the stub payment intent creator with the Stripe Node SDK
  • validates amount, currency, and optional metadata before calling Stripe
  • returns Stripe payment intent id/client secret and preserves Stripe error messages
  • adds mocked unit tests plus an env-gated Stripe smoke test
  • fixes the API test script glob so node:test discovers test files reliably

Demo

  • demos/stripe-payment-intent-demo.mp4

Tests

  • npm test -w apps/api

Smoke test

The real Stripe API smoke test is guarded behind RUN_STRIPE_SMOKE_TESTS=1 and STRIPE_SECRET_KEY so it can run in test-mode environments without exposing keys.

github-actions Bot added a commit that referenced this pull request May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Secure Payment Gateway and Payment Service

1 participant