Title: feat(payments): add Stripe payment intent module by digitalnomad91 · Pull Request #16 · codebuilderinc/codebuilder-api · GitHub
Open Graph Title: feat(payments): add Stripe payment intent module by digitalnomad91 · Pull Request #16 · codebuilderinc/codebuilder-api
X Title: feat(payments): add Stripe payment intent module by digitalnomad91 · Pull Request #16 · codebuilderinc/codebuilder-api
Description: Summary New PaymentsModule — full NestJS module (controller, service, DTOs) for Stripe card payment intents, wired into AppModule Stripe SDK — adds stripe ^22.1.0 to package.json / pnpm-lock.yaml Config — adds STRIPE_PUBLISHABLE_KEY, STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_DEFAULT_CURRENCY to ApplicationConfig interface and Joi validation in config.helper.ts Generated DTOs — adds auto-generated nestjs-dto files for the PaymentAttempt Prisma model (entity, connect, create, update) and registers the entity in metadata.ts Housekeeping — removes as ApiOperationOptions type cast in api.decorator.ts, minor reddit.service.ts cleanup, normalizes executable bit on ~60 source files (755 → 644), adds .env.example with all environment variable documentation API Endpoints Method Path Description GET /payments/stripe/config Returns publishable key + currency for frontend initialization POST /payments/stripe/intents Creates PaymentAttempt DB record + Stripe PaymentIntent, returns clientSecret POST /payments/stripe/attempts/:id/finalize Retrieves intent from Stripe, persists card metadata, receipt URL, and final status Notes The prisma submodule has uncommitted local changes (dbml/schema.dbml + migration 20260426183000_add_payment_attempts) that need to be committed inside the submodule repo before the pointer can be updated here. That work is tracked separately. .env.example keys are placeholder values (sk_test_replace_me / pk_test_replace_me) — real keys were scrubbed before push per GitHub secret scanning. Test plan Set STRIPE_PUBLISHABLE_KEY and STRIPE_SECRET_KEY in local .env GET /payments/stripe/config returns { publishableKey, configured: true, currency: "USD" } POST /payments/stripe/intents with a valid body creates a PaymentAttempt record and returns a clientSecret Confirm Stripe test card 4242 4242 4242 4242 completes successfully and POST .../finalize persists cardBrand, cardLast4, receiptUrl, and status: SUCCEEDED Confirm a declined card (4000 0000 0000 0002) results in status: FAILED with failureCode and failureMessage set GET /payments/stripe/config when STRIPE_SECRET_KEY is unset returns configured: false 🤖 Generated with Claude Code
Open Graph Description: Summary New PaymentsModule — full NestJS module (controller, service, DTOs) for Stripe card payment intents, wired into AppModule Stripe SDK — adds stripe ^22.1.0 to package.json / pnpm-lock.yaml ...
X Description: Summary New PaymentsModule — full NestJS module (controller, service, DTOs) for Stripe card payment intents, wired into AppModule Stripe SDK — adds stripe ^22.1.0 to package.json / pnpm-lock.yaml ...
Opengraph URL: https://github.com/codebuilderinc/codebuilder-api/pull/16
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:299fbf46-d642-7c22-31d3-da8652c104c1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E5E4:1B5FB5:C54593:11C66A0:6A621F97 |
| html-safe-nonce | 66b1c5127bbcc268b4f7da4d369ca44d0795b155161c845d45ef7de6770bc662 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUU0OjFCNUZCNTpDNTQ1OTM6MTFDNjZBMDo2QTYyMUY5NyIsInZpc2l0b3JfaWQiOiI2MDc1ODE5MTk3MjI5ODM0MTM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aa94decf133b4525764971c7cdfc6ff51a7f8ee9656ddab6bfc939bbc6e023aa |
| hovercard-subject-tag | pull_request:3672464447 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codebuilderinc/codebuilder-api/pull/16/files |
| twitter:image | https://avatars.githubusercontent.com/u/2067771?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2067771?s=400&v=4 |
| og:image:alt | Summary New PaymentsModule — full NestJS module (controller, service, DTOs) for Stripe card payment intents, wired into AppModule Stripe SDK — adds stripe ^22.1.0 to package.json / pnpm-lock.yaml ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | be68eaf9abf2a202afbd94047d7200fb88b7edb0338f533bf171bbb1a69fab4e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/codebuilderinc/codebuilder-api git https://github.com/codebuilderinc/codebuilder-api.git |
| octolytics-dimension-user_id | 30593880 |
| octolytics-dimension-user_login | codebuilderinc |
| octolytics-dimension-repository_id | 1013948899 |
| octolytics-dimension-repository_nwo | codebuilderinc/codebuilder-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1013948899 |
| octolytics-dimension-repository_network_root_nwo | codebuilderinc/codebuilder-api |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d00b04c8874615454dfbdb32a7d2ca4db66d3f4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width