|
ShopPlatform.Web 1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
|


Public 멤버 함수 | |
| TossPaymentGateway (HttpClient http, ShopPaymentConfig config, PaymentKeyProtector protector) | |
| Task< PaymentStartResult > | StartAsync (string orderNo, decimal amount, string customerName) |
| async Task< PaymentConfirmResult > | ConfirmAsync (string paymentKey, string orderId, int amount) |
Private 속성 | |
| readonly HttpClient | _http |
| readonly ShopPaymentConfig | _config |
| readonly PaymentKeyProtector | _protector |
정적 Private 속성 | |
| const string | ApiBase = "https://api.tosspayments.com/v1" |
토스페이먼츠 V2 구현. 테넌트별 키 사용.
TossPaymentGateway.cs 파일의 17 번째 라인에서 정의되었습니다.
|
inline |
지정한 설정으로 TossPaymentGateway 클래스의 새 인스턴스를 초기화합니다.
| http | http에 사용할 HttpClient 값입니다. |
| config | config에 사용할 ShopPaymentConfig 값입니다. |
| protector | protector에 사용할 PaymentKeyProtector 값입니다. |
TossPaymentGateway.cs 파일의 89 번째 라인에서 정의되었습니다.
다음을 참조함 : _config, _http, _protector.
|
inline |
Confirm Async 작업을 수행합니다.
| paymentKey | payment Key에 사용할 string 값입니다. |
| orderId | order Id에 사용할 string 값입니다. |
| amount | amount에 사용할 int 값입니다. |
Task<PaymentConfirmResult> 결과입니다.ShopPlatform.Payments.IPaymentGateway를 구현.
TossPaymentGateway.cs 파일의 189 번째 라인에서 정의되었습니다.
다음을 참조함 : _config, _http, _protector.
|
inline |
Start Async 작업을 수행합니다.
| orderNo | order No에 사용할 string 값입니다. |
| amount | amount에 사용할 decimal 값입니다. |
| customerName | customer Name에 사용할 string 값입니다. |
Task<PaymentStartResult> 결과입니다.ShopPlatform.Payments.IPaymentGateway를 구현.
TossPaymentGateway.cs 파일의 136 번째 라인에서 정의되었습니다.
다음을 참조함 : _config.
|
private |
config 값을 보관합니다.
TossPaymentGateway.cs 파일의 46 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConfirmAsync(), StartAsync(), TossPaymentGateway().
|
private |
http 값을 보관합니다.
TossPaymentGateway.cs 파일의 37 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConfirmAsync(), TossPaymentGateway().
|
private |
protector 값을 보관합니다.
TossPaymentGateway.cs 파일의 55 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConfirmAsync(), TossPaymentGateway().
|
staticprivate |
Api Base 값을 보관합니다.
TossPaymentGateway.cs 파일의 27 번째 라인에서 정의되었습니다.