Command.cs 468 B

1234567891011121314
  1. using Application.Abstractions.Messaging;
  2. namespace Application.Features.Api.Payment.Toss.Confirm;
  3. /// <summary>
  4. /// 토스 결제 승인. successUrl 콜백의 {paymentKey, orderId, amount} 를 받아
  5. /// 서버 저장 주문 금액과 대조(변조 차단) 후 서버 저장 금액으로 승인 API 를 호출한다.
  6. /// </summary>
  7. public sealed record Command(
  8. string PaymentKey,
  9. string OrderID,
  10. int Amount,
  11. int MemberID = 0
  12. ) : ICommand<Response>;