Skip to content

feat: implement hosted checkout session management (#9)#128

Open
BisimJang wants to merge 2 commits intoMissBlue00:mainfrom
BisimJang:feature/checkout-session-management
Open

feat: implement hosted checkout session management (#9)#128
BisimJang wants to merge 2 commits intoMissBlue00:mainfrom
BisimJang:feature/checkout-session-management

Conversation

@BisimJang
Copy link
Copy Markdown

@BisimJang BisimJang commented Mar 26, 2026

Summary

Implements hosted checkout session management (Fixes #9):

  • CheckoutSession entity (expires_at, session_token, full payload)
  • GET /checkout/session/:token public endpoint (@public)
  • CheckoutSessionService lifecycle and expiration handling
  • TypeORM + Postgres integration in AppModule
  • Unit tests for service + controller
  • docs + .env example
  • nullable return_url/webhook_url fixed

Motivation

Needed secure time-bound payment session for frontend-hosted checkout flow (apps/frontend).

Dependencies

  • @nestjs/typeorm
  • typeorm
  • pg
  • uuid
  • @types/uuid

Testing

  • npm run lint (apps/api) ✅
  • npm run build (apps/api) ✅
  • Unit tests:
    • apps/api/src/checkout/checkout-session.service.spec.ts
    • apps/api/src/checkout/checkout-session.controller.spec.ts

Checklist

  • Style guidelines followed
  • Self-review done
  • Documentation updated
  • No new warnings
  • Tests added & passing locally
  • Dependent changes merged (none)

Closes #9

- Create CheckoutSessionEntity with expires_at and session_token
- Implement GET /checkout/session/:token public endpoint
- Add CheckoutSessionService with session lifecycle management
- Integrate TypeORM database with PostgreSQL support
- Include comprehensive unit tests and documentation
- Fix nullable field type definitions for return_url and webhook_url
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

@BisimJang is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@BisimJang Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@MissBlue00
Copy link
Copy Markdown
Owner

MissBlue00 commented Mar 27, 2026

@BisimJang ci/cd checks failed and there are merge conflicts, please resolve

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.

Payments: Implement hosted checkout session management

2 participants