Skip to content

Implement Stripe PaymentIntent creation#17

Open
jamilahmadzai wants to merge 1 commit into
SecureBananaLabs:mainfrom
jamilahmadzai:fix/stripe-payment-intents
Open

Implement Stripe PaymentIntent creation#17
jamilahmadzai wants to merge 1 commit into
SecureBananaLabs:mainfrom
jamilahmadzai:fix/stripe-payment-intents

Conversation

@jamilahmadzai
Copy link
Copy Markdown

@jamilahmadzai jamilahmadzai commented May 16, 2026

/claim #1

Summary

  • replace the timestamp payment stub with Stripe SDK PaymentIntent creation from STRIPE_SECRET_KEY
  • validate amount, default/normalize currency, and coerce supported metadata before the Stripe API call
  • return paymentId and clientSecret from the Stripe response while preserving Stripe error messages
  • add mocked service coverage, API validation coverage, and an opt-in live Stripe smoke test

Verification

  • npm test

Live smoke test can be run with STRIPE_PAYMENT_SMOKE_TEST=1 STRIPE_SECRET_KEY=... npm test -w apps/api.

Payout

Payment method: Algora bounty-platform payout to GitHub user @jamilahmadzai for claim #1.

@jamilahmadzai
Copy link
Copy Markdown
Author

/claim #1

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.

1 participant