PaymentClient
class PaymentClient extends AbstractClient (View source)
결제 API 작업과 결제 관련 하위 클라이언트에 접근할 수 있습니다.
Properties
| protected RequestExecutor | $executor | from AbstractClient | |
| BillingKeyClient | $billingKey | ||
| CashReceiptClient | $cashReceipt | ||
| AdditionalFeatureClient | $additionalFeature | ||
| PaymentScheduleClient | $paymentSchedule | ||
| PromotionClient | $promotion |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
결제 다건 조회(페이지 기반) 기능입니다.
결제 다건 조회(페이지 기반) 기능입니다.
에스크로 배송 정보 등록 기능입니다.
에스크로 배송 정보 등록 기능입니다.
결제 취소 기능입니다.
결제 취소 기능입니다.
수동 매입 기능입니다.
수동 매입 기능입니다.
가상계좌 말소 기능입니다.
가상계좌 말소 기능입니다.
에스크로 구매 확정 기능입니다.
에스크로 구매 확정 기능입니다.
인증 결제 수동 승인 기능입니다.
인증 결제 수동 승인 기능입니다.
결제 이벤트 대용량 다건 조회(커서 기반) 기능입니다.
결제 이벤트 대용량 다건 조회(커서 기반) 기능입니다.
결제 대용량 다건 조회(커서 기반) 기능입니다.
결제 대용량 다건 조회(커서 기반) 기능입니다.
결제 단건 조회 기능입니다.
결제 단건 조회 기능입니다.
결제 시도 내역 조회 기능입니다.
결제 시도 내역 조회 기능입니다.
에스크로 배송 정보 수정 기능입니다.
에스크로 배송 정보 수정 기능입니다.
수기 결제 기능입니다.
수기 결제 기능입니다.
빌링키 결제 기능입니다.
빌링키 결제 기능입니다.
결제 정보 사전 등록 기능입니다.
결제 정보 사전 등록 기능입니다.
영수증 내 하위 상점 거래 등록 기능입니다.
영수증 내 하위 상점 거래 등록 기능입니다.
웹훅 재발송 기능입니다.
웹훅 재발송 기능입니다.
결제 취소 요청 취소 기능입니다.
결제 취소 요청 취소 기능입니다.
Details
__construct(string $apiSecret, RequestExecutor|null $executor = null)
PaymentClient 객체를 초기화합니다.
array
__debugInfo()
인증 정보가 디버그 출력에 노출되지 않도록 빈 정보를 반환합니다.
array
__serialize()
인증 정보가 직렬화되어 노출되지 않도록 직렬화를 거부합니다.
void
__unserialize(array $data)
인증 정보가 포함된 객체의 역직렬화를 거부합니다.
protected RequestExecutor
createExecutor(string $apiSecret)
No description
protected object
callOperation(string $operation, string $method, string $path, array $parameters, string $responseClass, bool $requestBody)
No description
protected Future
callOperationAsync(string $operation, string $method, string $path, array $parameters, string $responseClass, bool $requestBody)
No description
protected object
callOperationWithQueryAndBody(string $operation, string $method, string $path, array $query, array $body, string $responseClass)
No description
protected Future
callOperationWithQueryAndBodyAsync(string $operation, string $method, string $path, array $query, array $body, string $responseClass)
No description
protected object
callOperationWithQueryRequestBody(string $operation, string $method, string $path, array $query, array $body, string $responseClass)
No description
protected Future
callOperationWithQueryRequestBodyAsync(string $operation, string $method, string $path, array $query, array $body, string $responseClass)
No description
protected string
callStringOperation(string $operation, string $method, string $path, array $options = [])
No description
protected Future
callStringOperationAsync(string $operation, string $method, string $path, array $options = [])
No description
protected string
callStringOperationWithQueryRequestBody(string $operation, string $method, string $path, array $query, array $body)
No description
protected Future
callStringOperationWithQueryRequestBodyAsync(string $operation, string $method, string $path, array $query, array $body)
No description
protected void
callUnitOperation(string $operation, string $method, string $path, array $options = [])
No description
protected Future
callUnitOperationAsync(string $operation, string $method, string $path, array $options = [])
No description
protected void
callUnitOperationWithQueryAndBody(string $operation, string $method, string $path, array $query, array $body)
No description
protected Future
callUnitOperationWithQueryAndBodyAsync(string $operation, string $method, string $path, array $query, array $body)
No description
protected void
callUnitOperationWithQuery(string $operation, string $method, string $path, array $query)
No description
protected Future
callUnitOperationWithQueryAsync(string $operation, string $method, string $path, array $query)
No description
GetPaymentsResponse
getPayments(array|null $page = null, array|null $filter = null)
결제 다건 조회(페이지 기반) 기능입니다.
주어진 조건에 맞는 결제 건들을 페이지 기반으로 조회합니다.
Future
getPaymentsAsync(array|null $page = null, array|null $filter = null)
결제 다건 조회(페이지 기반) 기능입니다.
주어진 조건에 맞는 결제 건들을 페이지 기반으로 조회합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
ApplyEscrowLogisticsResponse
applyEscrowLogistics(string|null $paymentId = null, array|null $sender = null, array|null $receiver = null, array|null $logistics = null, bool|null $sendEmail = null, array|null $products = null, string|null $storeId = null)
에스크로 배송 정보 등록 기능입니다.
에스크로 배송 정보를 등록합니다.
Future
applyEscrowLogisticsAsync(string|null $paymentId = null, array|null $sender = null, array|null $receiver = null, array|null $logistics = null, bool|null $sendEmail = null, array|null $products = null, string|null $storeId = null)
에스크로 배송 정보 등록 기능입니다.
에스크로 배송 정보를 등록합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
CancelPaymentResponse
cancelPayment(string|null $paymentId = null, int|null $amount = null, int|null $taxFreeAmount = null, int|null $vatAmount = null, string|null $reason = null, string|null $requester = null, string|null $promotionDiscountRetainOption = null, int|null $currentCancellableAmount = null, array|null $refundAccount = null, string|null $refundEmail = null, bool|null $skipWebhook = null, string|null $storeId = null)
결제 취소 기능입니다.
결제 취소를 요청합니다.
Future
cancelPaymentAsync(string|null $paymentId = null, int|null $amount = null, int|null $taxFreeAmount = null, int|null $vatAmount = null, string|null $reason = null, string|null $requester = null, string|null $promotionDiscountRetainOption = null, int|null $currentCancellableAmount = null, array|null $refundAccount = null, string|null $refundEmail = null, bool|null $skipWebhook = null, string|null $storeId = null)
결제 취소 기능입니다.
결제 취소를 요청합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
CapturePaymentResponse
capturePayment(string|null $paymentId = null, string|null $storeId = null)
수동 매입 기능입니다.
수동 매입을 요청합니다. PG 및 포트원과의 사전 협의가 필요합니다.
Future
capturePaymentAsync(string|null $paymentId = null, string|null $storeId = null)
수동 매입 기능입니다.
수동 매입을 요청합니다. PG 및 포트원과의 사전 협의가 필요합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
CloseVirtualAccountResponse
closeVirtualAccount(string|null $paymentId = null, string|null $storeId = null)
가상계좌 말소 기능입니다.
발급된 가상계좌를 말소합니다.
Future
closeVirtualAccountAsync(string|null $paymentId = null, string|null $storeId = null)
가상계좌 말소 기능입니다.
발급된 가상계좌를 말소합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
ConfirmEscrowResponse
confirmEscrow(string|null $paymentId = null, bool|null $fromStore = null, string|null $storeId = null)
에스크로 구매 확정 기능입니다.
에스크로 결제를 구매 확정 처리합니다
Future
confirmEscrowAsync(string|null $paymentId = null, bool|null $fromStore = null, string|null $storeId = null)
에스크로 구매 확정 기능입니다.
에스크로 결제를 구매 확정 처리합니다 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
ConfirmedPaymentSummary
confirmPayment(string|null $paymentId = null, string|null $paymentToken = null, string|null $txId = null, string|null $currency = null, int|null $totalAmount = null, int|null $taxFreeAmount = null, bool|null $isTest = null, bool|null $skipWebhook = null, string|null $storeId = null)
인증 결제 수동 승인 기능입니다.
수동 승인으로 설정된 인증 결제에 대해, 결제를 완료 처리합니다.
Future
confirmPaymentAsync(string|null $paymentId = null, string|null $paymentToken = null, string|null $txId = null, string|null $currency = null, int|null $totalAmount = null, int|null $taxFreeAmount = null, bool|null $isTest = null, bool|null $skipWebhook = null, string|null $storeId = null)
인증 결제 수동 승인 기능입니다.
수동 승인으로 설정된 인증 결제에 대해, 결제를 완료 처리합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
GetAllPaymentEventsByCursorResponse
getAllPaymentEventsByCursor(string|null $from = null, string|null $until = null, string|null $cursor = null, int|null $size = null, string|null $storeId = null)
결제 이벤트 대용량 다건 조회(커서 기반) 기능입니다.
기간 내 모든 결제 이벤트를 커서 기반으로 조회합니다. 결제 이벤트의 생성일시를 기준으로 주어진 기간 내 존재하는 모든 결제 이벤트가 조회됩니다.
Future
getAllPaymentEventsByCursorAsync(string|null $from = null, string|null $until = null, string|null $cursor = null, int|null $size = null, string|null $storeId = null)
결제 이벤트 대용량 다건 조회(커서 기반) 기능입니다.
기간 내 모든 결제 이벤트를 커서 기반으로 조회합니다. 결제 이벤트의 생성일시를 기준으로 주어진 기간 내 존재하는 모든 결제 이벤트가 조회됩니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
GetAllPaymentsByCursorResponse
getAllPaymentsByCursor(string|null $from = null, string|null $until = null, string|null $cursor = null, int|null $size = null, string|null $storeId = null)
결제 대용량 다건 조회(커서 기반) 기능입니다.
기간 내 모든 결제 건을 커서 기반으로 조회합니다. 결제 건의 생성일시를 기준으로 주어진 기간 내 존재하는 모든 결제 건이 조회됩니다.
Future
getAllPaymentsByCursorAsync(string|null $from = null, string|null $until = null, string|null $cursor = null, int|null $size = null, string|null $storeId = null)
결제 대용량 다건 조회(커서 기반) 기능입니다.
기간 내 모든 결제 건을 커서 기반으로 조회합니다. 결제 건의 생성일시를 기준으로 주어진 기간 내 존재하는 모든 결제 건이 조회됩니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
Payment
getPayment(string|null $paymentId = null, string|null $storeId = null)
결제 단건 조회 기능입니다.
주어진 아이디에 대응되는 결제 건을 조회합니다.
Future
getPaymentAsync(string|null $paymentId = null, string|null $storeId = null)
결제 단건 조회 기능입니다.
주어진 아이디에 대응되는 결제 건을 조회합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
GetPaymentTransactionsResponse
getPaymentTransactions(string|null $paymentId = null, string|null $storeId = null)
결제 시도 내역 조회 기능입니다.
주어진 아이디에 대응되는 결제 건의 결제 시도 내역을 조회합니다.
Future
getPaymentTransactionsAsync(string|null $paymentId = null, string|null $storeId = null)
결제 시도 내역 조회 기능입니다.
주어진 아이디에 대응되는 결제 건의 결제 시도 내역을 조회합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
ModifyEscrowLogisticsResponse
modifyEscrowLogistics(string|null $paymentId = null, array|null $sender = null, array|null $receiver = null, array|null $logistics = null, bool|null $sendEmail = null, array|null $products = null, string|null $storeId = null)
에스크로 배송 정보 수정 기능입니다.
에스크로 배송 정보를 수정합니다.
Future
modifyEscrowLogisticsAsync(string|null $paymentId = null, array|null $sender = null, array|null $receiver = null, array|null $logistics = null, bool|null $sendEmail = null, array|null $products = null, string|null $storeId = null)
에스크로 배송 정보 수정 기능입니다.
에스크로 배송 정보를 수정합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
PayInstantlyResponse
payInstantly(string|null $paymentId = null, string|null $channelKey = null, string|null $channelGroupId = null, array|null $method = null, string|null $orderName = null, bool|null $isCulturalExpense = null, bool|null $isEscrow = null, array|null $customer = null, string|null $customData = null, array|null $amount = null, string|null $currency = null, string|null $country = null, array|null $noticeUrls = null, array|null $products = null, int|null $productCount = null, string|null $productType = null, array|null $shippingAddress = null, string|null $promotionId = null, array|null $bypass = null, bool|null $skipWebhook = null, string|null $storeId = null)
수기 결제 기능입니다.
카드 비인증 결제 또는 가상 계좌 발급을 API로 요청합니다.
Future
payInstantlyAsync(string|null $paymentId = null, string|null $channelKey = null, string|null $channelGroupId = null, array|null $method = null, string|null $orderName = null, bool|null $isCulturalExpense = null, bool|null $isEscrow = null, array|null $customer = null, string|null $customData = null, array|null $amount = null, string|null $currency = null, string|null $country = null, array|null $noticeUrls = null, array|null $products = null, int|null $productCount = null, string|null $productType = null, array|null $shippingAddress = null, string|null $promotionId = null, array|null $bypass = null, bool|null $skipWebhook = null, string|null $storeId = null)
수기 결제 기능입니다.
카드 비인증 결제 또는 가상 계좌 발급을 API로 요청합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
PayWithBillingKeyResponse
payWithBillingKey(string|null $paymentId = null, string|null $billingKey = null, string|null $channelKey = null, string|null $orderName = null, array|null $customer = null, string|null $customData = null, array|null $amount = null, string|null $currency = null, int|null $installmentMonth = null, bool|null $useFreeInterestFromMerchant = null, bool|null $useCardPoint = null, array|null $cashReceipt = null, string|null $country = null, array|null $noticeUrls = null, array|null $products = null, int|null $productCount = null, string|null $productType = null, array|null $shippingAddress = null, string|null $promotionId = null, string|null $locale = null, array|null $bypass = null, bool|null $skipWebhook = null, string|null $storeId = null)
빌링키 결제 기능입니다.
빌링키로 결제를 진행합니다.
Future
payWithBillingKeyAsync(string|null $paymentId = null, string|null $billingKey = null, string|null $channelKey = null, string|null $orderName = null, array|null $customer = null, string|null $customData = null, array|null $amount = null, string|null $currency = null, int|null $installmentMonth = null, bool|null $useFreeInterestFromMerchant = null, bool|null $useCardPoint = null, array|null $cashReceipt = null, string|null $country = null, array|null $noticeUrls = null, array|null $products = null, int|null $productCount = null, string|null $productType = null, array|null $shippingAddress = null, string|null $promotionId = null, string|null $locale = null, array|null $bypass = null, bool|null $skipWebhook = null, string|null $storeId = null)
빌링키 결제 기능입니다.
빌링키로 결제를 진행합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
PreRegisterPaymentResponse
preRegisterPayment(string|null $paymentId = null, int|null $totalAmount = null, int|null $taxFreeAmount = null, string|null $currency = null, string|null $storeId = null)
결제 정보 사전 등록 기능입니다.
결제 정보를 사전 등록합니다.
Future
preRegisterPaymentAsync(string|null $paymentId = null, int|null $totalAmount = null, int|null $taxFreeAmount = null, string|null $currency = null, string|null $storeId = null)
결제 정보 사전 등록 기능입니다.
결제 정보를 사전 등록합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
RegisterStoreReceiptResponse
registerStoreReceipt(string|null $paymentId = null, array|null $items = null, string|null $storeId = null)
영수증 내 하위 상점 거래 등록 기능입니다.
결제 내역 매출전표에 하위 상점의 거래를 등록합니다. 지원되는 PG사: KG이니시스(이용 전 콘솔 -> 결제연동 탭에서 INIApi Key 등록 필요)
Future
registerStoreReceiptAsync(string|null $paymentId = null, array|null $items = null, string|null $storeId = null)
영수증 내 하위 상점 거래 등록 기능입니다.
결제 내역 매출전표에 하위 상점의 거래를 등록합니다. 지원되는 PG사: KG이니시스(이용 전 콘솔 -> 결제연동 탭에서 INIApi Key 등록 필요) 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
ResendWebhookResponse
resendWebhook(string|null $paymentId = null, string|null $webhookId = null, string|null $storeId = null)
웹훅 재발송 기능입니다.
웹훅을 재발송합니다.
Future
resendWebhookAsync(string|null $paymentId = null, string|null $webhookId = null, string|null $storeId = null)
웹훅 재발송 기능입니다.
웹훅을 재발송합니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.
StopPaymentCancellationResponse
stopPaymentCancellation(string|null $paymentId = null, string|null $cancellationId = null, string|null $storeId = null)
결제 취소 요청 취소 기능입니다.
비동기적으로 수행되는 결제 취소 요청을 취소합니다. Triple-A에서만 사용됩니다.
Future
stopPaymentCancellationAsync(string|null $paymentId = null, string|null $cancellationId = null, string|null $storeId = null)
결제 취소 요청 취소 기능입니다.
비동기적으로 수행되는 결제 취소 요청을 취소합니다. Triple-A에서만 사용됩니다. 비동기 요청을 시작하며, 반환된 Future에서 결과를 기다릴 수 있습니다.