/claim #1

Summary

  • replace the stub payment service with a real Stripe paymentIntents.create() flow driven by STRIPE_SECRET_KEY
  • validate amount, currency, and optional metadata before calling Stripe, and surface the resulting error messages through the payments API
  • add unit tests for the mocked Stripe client, an API test for validation errors, and an env-guarded smoke test for live test-mode PaymentIntent creation

Validation

  • npm test -w apps/api
  • git diff --check

Demo

  • short demo video: demos/stripe-payment-intent-demo.webm

Smoke Test

  • Added apps/api/src/tests/paymentService.smoke.test.js
  • Run with RUN_STRIPE_SMOKE_TEST=1 STRIPE_SECRET_KEY=... npm test -w apps/api
  • Not executed in this environment because no Stripe test secret is available here

Claim

Total prize pool $350
Total paid $0
Status Pending
Submitted May 20, 2026
Last updated May 20, 2026

Contributors

CE

cedar323

@cedar323

100%

Sponsors

BR

brianne-showed

@brianne-showed

$350