PaymentApiRepository

interface PaymentApiRepository

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: DigitalPayCompletionRequest): ApiResult<DigitalPayCompletionResponse>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
guestPayment
Link copied to clipboard

Make guest payments to a merchant using guest payment intruments.

abstract fun guestPayment(paymentRequest: DigitalPayPaymentRequest): ApiResult<DigitalPayPaymentResponse>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
pay
Link copied to clipboard

Make payments to a merchant using payment intruments.

abstract fun pay(paymentRequest: DigitalPayPaymentRequest): ApiResult<DigitalPayPaymentResponse>
refund
Link copied to clipboard

Make payments to a merchant using Openpay payment tokens.

abstract fun refund(refundRequest: DigitalPayRefundRequest): ApiResult<DigitalPayRefundResponse>
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: DigitalPayVoidRequest): ApiResult<DigitalPayVoidResponse>