Skip to content

feat: implement Stripe PaymentIntent with client_secret (Bounty #1)#21

Closed
malsony wants to merge 1 commit into
SecureBananaLabs:mainfrom
malsony:fix/payment-intent-stripe
Closed

feat: implement Stripe PaymentIntent with client_secret (Bounty #1)#21
malsony wants to merge 1 commit into
SecureBananaLabs:mainfrom
malsony:fix/payment-intent-stripe

Conversation

@malsony
Copy link
Copy Markdown

@malsony malsony commented May 16, 2026

Summary

  • Integrated Stripe Node.js SDK to create a real PaymentIntent
  • Returns paymentId, amount, currency, provider: 'stripe', and client_secret
  • Handles Stripe errors and throws meaningful messages
  • Converts amount to cents as required by Stripe

Changes

  • Modified apps/api/src/services/paymentService.js to use Stripe SDK
  • Added Stripe as a dependency (already installed via npm install stripe)

Test Plan

  • Verified the function syntax with node -c
  • Manual review of the implementation

Closes #1

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.

Implement Secure Payment Gateway and Payment Service

1 participant