Skip to content

feat(payment): integrate Stripe SDK for PaymentIntent creation (Closes #1)#647

Open
jayzoo001 wants to merge 1 commit into
SecureBananaLabs:mainfrom
jayzoo001:main
Open

feat(payment): integrate Stripe SDK for PaymentIntent creation (Closes #1)#647
jayzoo001 wants to merge 1 commit into
SecureBananaLabs:mainfrom
jayzoo001:main

Conversation

@jayzoo001
Copy link
Copy Markdown

Replace stub with real Stripe PaymentIntent via Stripe Node.js SDK. Includes amount validation, default currency, and unit tests.

Replace stub with real Stripe PaymentIntent integration:
- Use Stripe SDK with STRIPE_SECRET_KEY from env config
- Validate amount is a positive integer before API call
- Default currency to 'usd' when not provided
- Return clientSecret and paymentId from Stripe response
- Propagate Stripe errors with original error type
- Add unit tests for validation and Stripe error handling

Closes SecureBananaLabs#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.

1 participant