payInstantly

@JvmName(name = "payInstantlySuspend")
suspend fun payInstantly(paymentId: String, channelKey: String? = null, channelGroupId: String? = null, method: InstantPaymentMethodInput, orderName: String, isCulturalExpense: Boolean? = null, isEscrow: Boolean? = null, customer: CustomerInput? = null, customData: String? = null, amount: PaymentAmountInput, currency: Currency, country: Country? = null, noticeUrls: List<String>? = null, products: List<PaymentProduct>? = null, productCount: Int? = null, productType: PaymentProductType? = null, shippingAddress: SeparatedAddressInput? = null, promotionId: String? = null): PayInstantlyResponse

수기 결제

수기 결제를 진행합니다.

Parameters

paymentId

결제 건 아이디

channelKey

채널 키

채널 키 또는 채널 그룹 ID 필수

channelGroupId

채널 그룹 ID

채널 키 또는 채널 그룹 ID 필수

method

결제수단 정보

orderName

주문명

isCulturalExpense

문화비 지출 여부

기본값은 false 입니다.

isEscrow

에스크로 결제 여부

기본값은 false 입니다.

customer

고객 정보

customData

사용자 지정 데이터

amount

결제 금액 세부 입력 정보

currency

통화

country

결제 국가

noticeUrls

웹훅 주소

결제 승인/실패 시 요청을 받을 웹훅 주소입니다. 상점에 설정되어 있는 값보다 우선적으로 적용됩니다. 입력된 값이 없을 경우에는 빈 배열로 해석됩니다.

products

상품 정보

입력된 값이 없을 경우에는 빈 배열로 해석됩니다.

productCount

상품 개수

productType

상품 유형

shippingAddress

배송지 주소

promotionId

해당 결제에 적용할 프로모션 아이디

Throws

결제가 이미 완료된 경우

요청된 채널이 존재하지 않는 경우

프로모션 할인 금액이 결제 시도 금액 이상인 경우

요청이 거절된 경우

요청된 입력 정보가 유효하지 않은 경우

결제 혹은 본인인증 시도 횟수가 최대에 도달한 경우

PG사에서 오류를 전달한 경우

결제수단이 프로모션에 지정된 것과 일치하지 않는 경우

면세 금액 등 하위 항목들의 합이 전체 결제 금액을 초과한 경우

인증 정보가 올바르지 않은 경우

API 응답이 알 수 없는 형식인 경우