Implement Stripe payment intents#70
Conversation
Code ReviewPR: Implement Stripe payment intents by @Thanhdn1984
Wallet: Code review for SecureBananaLabs bug-bounty |
ad1c050 to
50e186b
Compare
|
Cleaned up PR scope after review: removed unrelated benchmark commit/files and rebased onto current main. The PR now only changes the Stripe payment service, API package dependency, tests, and lockfile.\n\nVerification:\n- |
50e186b to
6145194
Compare
|
Follow-up fix after rechecking the bounty requirements and reproducibility:
The PR remains scoped to issue #1 only. |
6145194 to
52e9739
Compare
|
Final recheck update:
Scope remains issue #1 only: Stripe SDK dependency, payment service, payment tests, API test script, lockfile. |
Demo / verification for bounty claimThis PR is now fully reproducible with the documented workspace command. Commands runnpm test -w apps/api
git diff --checkResultWhat this demonstrates
|
|
Closing this duplicate/noisy submission to avoid wasting maintainer time. Sorry for the duplicate PRs — I will keep only the most relevant/latest submission and follow up there if needed. |
/claim #1
Summary
pay_${Date.now()}payment stub with Stripe PaymentIntent creation through the Stripe Node SDKamountas a positive integer, defaults/lowercasescurrency, and supports optional metadatapaymentIdandclientSecretfrom the real Stripe response while preserving Stripe error messages/api/paymentsroute coverage plus a guarded live smoke test (STRIPE_LIVE_SMOKE=1)Demo / verification
npm test -w apps/apigit diff --checkResult: 7 passing tests, 1 skipped guarded live Stripe smoke test.
Short demo artifact: the test output exercises the mocked Stripe PaymentIntent path, validation failures, default currency, Stripe error preservation, env-key guard, POST
/api/paymentsresponse, and existing health endpoint test.