Commit Graph

4 Commits

Author SHA1 Message Date
청춘약국
c658ac4c43 feat: 영수증 인쇄를 TCP→DLL 방식으로 전환
TCP 소켓(PRINTSTART/PRINTEND) 대신 AllThatPayCatReqMC(iCmd=2)로
DLL→MMF 경유 인쇄. GW 포트 변경에 영향받지 않음.

- ProcessPrint: TCP 소켓 제거, DLL CatReqMC(2) 호출로 대체
- FindGWPort: 8080/7779 포트 제외 로직 추가
- 실패 시 FindGWPort+ConnectDLL 재연결 후 1회 재시도
- build.bat, test_print_dll.ps1 추가 (DLL 인쇄 단독 테스트용)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 10:47:37 +09:00
청춘약국
7f66ee82b6 feat: 카드 응답에 카드사/매입사 정보 추가
- card_company (position 9)
- acquirer_name (position 10)
- approval_datetime, card_no, merchant_no 등
- Flask API 응답과 동일한 필드명 사용
2026-03-27 23:48:28 +09:00
청춘약국
705b0a5a26 build: exe 파일 추가 (최신 빌드)
- PaymentBridge.exe: HTTP API 서버
- PaymentStop.exe: 결제 취소 테스트용
2026-03-27 23:10:10 +09:00
청춘약국
a0d9b4364a Initial commit: Payment Bridge (올댓페이 C# DLL Wrapper)
- PaymentBridge.cs: HTTP API 서버 (포트 7779)
  - /api/status: 연결 상태 확인
  - /api/card/approve: 카드 승인 (D1)
  - /api/card/cancel: 카드 취소 (D2)
  - /api/card/stop: 결제 진행 중 취소 시도
  - /api/cash/receipt: 현금영수증 (B1)
  - /api/cash/cancel: 현금영수증 취소 (B2)

- PaymentStop.cs: 별도 취소 exe (테스트용)

- 사용 DLL:
  - AllthatModule.dll (카드결제)
  - PosToCatReq.dll (ReqStop)
2026-03-27 23:08:29 +09:00