ShopPlatform.Web 1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
로딩중...
검색중...
일치하는것 없음
IPaymentGateway.cs
이 파일의 문서화 페이지로 가기
2
11public sealed class PaymentStartResult
12{
21 public string OrderId { get; set; } = string.Empty;
30 public string OrderNo { get; set; } = string.Empty;
39 public decimal Amount { get; set; }
48 public string ClientKey { get; set; } = string.Empty;
57 public string SuccessUrl { get; set; } = string.Empty;
66 public string FailUrl { get; set; } = string.Empty;
67}
68
77public sealed class PaymentConfirmResult
78{
87 public bool Succeeded { get; set; }
96 public string? TransactionId { get; set; }
105 public string? Error { get; set; }
106}
107
116public interface IPaymentGateway
117{
158 Task<PaymentStartResult> StartAsync(string orderNo, decimal amount, string customerName);
159
200 Task<PaymentConfirmResult> ConfirmAsync(string paymentKey, string orderId, int amount);
201}
Task< PaymentStartResult > StartAsync(string orderNo, decimal amount, string customerName)
Task< PaymentConfirmResult > ConfirmAsync(string paymentKey, string orderId, int amount)