CustomerPaymentSessionsRepository

interface CustomerPaymentSessionsRepository

Functions

delete
Link copied to clipboard
abstract fun delete(paymentSessionId: String): ApiResult<Unit>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getById
Link copied to clipboard

Retrieve a PaymentSession by it's ID

abstract fun getById(paymentSessionId: String): ApiResult<PaymentSession>
getByQRCodeId
Link copied to clipboard

Retrieve a PaymentSession by a QR code ID associated to the session.

abstract fun getByQRCodeId(qrCodeId: String): ApiResult<PaymentSession>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
preApprove
Link copied to clipboard

Pre-approve payment for a PaymentSession

abstract fun preApprove(paymentSessionId: String, primaryInstrument: String?, secondaryInstruments: List<SecondaryPaymentInstrument>?, clientReference: String?, preferences: PaymentPreferences?, challengeResponses: List<ChallengeResponse>?): ApiResult<Unit>
toString
Link copied to clipboard
open override fun toString(): String
update
Link copied to clipboard
abstract fun update(paymentSessionId: String, session: CustomerUpdatePaymentSessionRequest): ApiResult<Unit>