feat: integrate Stripe PaymentIntent in payment service#25
Closed
szlandywang-sketch wants to merge 1 commit into
Closed
feat: integrate Stripe PaymentIntent in payment service#25szlandywang-sketch wants to merge 1 commit into
szlandywang-sketch wants to merge 1 commit into
Conversation
- Replace stub createPaymentIntent with real Stripe SDK integration - Add input validation (amount required, must be positive integer) - Default currency to 'usd' when not provided - Handle Stripe errors and surface with meaningful messages - Add unit tests for validation and controller - Add environment-guarded integration test for Stripe Closes SecureBananaLabs#1
9 tasks
gacorpoll-ui
pushed a commit
to gacorpoll-ui/bug-bounty
that referenced
this pull request
May 17, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the stub
createPaymentIntentwith a real Stripe SDK integration.Changes
stripenpm package inapps/apiworkspacepaymentService.jsto use realstripe.paymentIntents.create()amountrequired, must be positive integer (cents)currencyto"usd"when not providedclientSecretandpaymentIdfrom Stripe responsepay_${Date.now()}ID generationTest Results
Acceptance Criteria
stripenpm package installed,STRIPE_SECRET_KEYenv var used (no hardcoded keys)payload.amountrequired, positive integer — throws ValidationError otherwisepayload.currencydefaults to"usd"stripe.paymentIntents.create()call with{ amount, currency }clientSecretandpaymentIdpay_${Date.now()}removedRUN_STRIPE_INTEGRATION_TESTSenv flagCloses #1
/bounty $350