Skip to content

Conversation

@polyglot-k
Copy link
Contributor

@polyglot-k polyglot-k commented Jul 3, 2025

😎 연결된 이슈

✨ 구현한 기능

  • 토스 페이먼츠 RestTemplate 을 통한 결제 확인
  • TransactionEventListener로 결제 후속처리 흐름 분리
  • Discountpolicy 를 구성하여 할인 정책에 따른 가격 책정 도메인서비스 구성
  • RefundPolicyAdapter 을 통해서, Discountpolicy 를 역산하여 환불 금액을 책정하는 도메인서비스 구성

🎸 기타

  • 추후 다른 PR 에서 내부 고도화 하겠습니다.

polyglot-k added 21 commits July 3, 2025 19:22
… 및 결제 페이로드 데이터 전송을 위한 DTO 구현
…elFakeRestOperationsStub 클래스 추가 - 결제 확인 및 취소 요청을 위한 스텁 구현
@polyglot-k polyglot-k self-assigned this Jul 3, 2025
@polyglot-k polyglot-k requested a review from Copilot July 3, 2025 14:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR integrates Toss Payments by adding client configurations, stubs for testing, domain models, and supporting DTOs and controllers.

  • Introduce TossPaymentClient, error handler, and RestTemplate configuration for basic-auth calls.
  • Add test stubs (ConfirmFakeRestOperationsStub, CancelFakeRestOperationsStub) and unit tests for payment confirmation.
  • Extend domain entities (PaymentJpaEntity, PaymentAmountVO, enums) to persist payment details.

Reviewed Changes

Copilot reviewed 44 out of 45 changed files in this pull request and generated 4 comments.

File Description
CancelFakeRestOperationsStub.java Stub incorrectly handles /confirm instead of /cancel
PaymentJpaEntity.java Added quantity field but omitted in constructor/builder and of method
PaymentMethod.java Leading space in card name literal
TossPaymentErrorHandler.java Error handler throws generic RuntimeException without context

polyglot-k and others added 24 commits July 6, 2025 02:23
@polyglot-k polyglot-k changed the title MOSU-33 feature: 토스 페이먼츠 결제 구현 ( pr 닫지 마세요) MOSU-33 feature: 토스 페이먼츠 결제 흐름 구현 Jul 6, 2025
@polyglot-k polyglot-k merged commit e8e8d4a into develop Jul 6, 2025
1 check passed
@polyglot-k polyglot-k deleted the feature/mosu-33 branch July 6, 2025 17:44
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.

[🛠 기능 구현] 토스 페이먼츠 결제

3 participants