Skip to content

feat(checkout): add session payment endpoint and remove TypeORM#37

Merged
oomokaro1 merged 3 commits into
mainfrom
feat/session-payment-endpoint
Jul 8, 2026
Merged

feat(checkout): add session payment endpoint and remove TypeORM#37
oomokaro1 merged 3 commits into
mainfrom
feat/session-payment-endpoint

Conversation

@oomokaro1

Copy link
Copy Markdown
Contributor

Summary

  • Add GET /v1/checkout/sessions/:id/payment endpoint for SDK's getSessionPayment() method
  • Add webhook_endpoints and payment_links tables to Drizzle schema (prep for follow-up PRs)
  • Remove @nestjs/typeorm and typeorm dependencies entirely
  • Replace TypeOrmHealthIndicator with Drizzle raw SQL health check

Changes

New endpoint

  • GET /v1/checkout/sessions/:id/payment — returns payment details for a confirmed session (API key auth)

TypeORM removal

  • Removed TypeOrmModule.forRoot() from AppModule
  • Health check now uses db.execute(sql\SELECT 1`)` via Drizzle
  • Updated smoke test to mock Drizzle instead of TypeORM

Schema additions

  • webhook_endpoints table — supports SDK's multi-endpoint webhook management
  • payment_links table — supports SDK's payment link creation

Test plan

  • All 28 unit test suites pass (265 tests)
  • Lint clean (0 errors)
  • Format check clean

- Add GET /v1/checkout/sessions/:id/payment endpoint (API key auth)
- Add webhook_endpoints and payment_links tables to Drizzle schema
- Remove @nestjs/typeorm and typeorm dependencies
- Replace TypeOrmHealthIndicator with Drizzle raw SQL health check
- Update smoke test and webhook controller test for new architecture
@oomokaro1 oomokaro1 merged commit 215eda0 into main Jul 8, 2026
1 check passed
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