OpenPayApiRepository

interface OpenPayApiRepository

Functions

complete
Link copied to clipboard

Complete pre-authed Openpay payments. This API is IP restricted to allow unauthenticated server side calls.

abstract fun complete(completionRequest: OpenPayCompletionRequest): ApiResult<OpenPayCompletionResponse>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
pay
Link copied to clipboard

Make payments to a merchant using Openpay payment tokens.

abstract fun pay(paymentRequest: OpenPayPaymentRequest): ApiResult<OpenPayPaymentResponse>
refund
Link copied to clipboard

Make payments to a merchant using Openpay payment tokens.

abstract fun refund(refundRequest: OpenPayRefundRequest): ApiResult<OpenPayRefundResponse>
toString
Link copied to clipboard
open override fun toString(): String
voidPayment
Link copied to clipboard

Void (cancel) pre-authed Openpay payments. This API is IP restricted to allow unauthenticated server side calls.

abstract fun voidPayment(voidRequest: OpenPayVoidRequest): ApiResult<OpenPayVoidResponse>