preApprove

Pre-approve payment for a PaymentSession

Parameters

challengeResponses

Used when needing to complete challenge(s) to complete payment.

clientReference

An optional client reference to be associated with the transaction.

paymentSessionId

The PaymentSession to pre-approve payment for.

preferences

Optional payment preferences.

primaryInstrument

The primary (or only) instrument to use to make the payment. If not present then the primary instrument from the customer preferences will be used.

secondaryInstruments

Other payment instruments to use to split payment.

abstract fun preApprove(paymentSessionId: String, primaryInstrument: String?, secondaryInstruments: List<SecondaryPaymentInstrument>?, clientReference: String?, preferences: PaymentPreferences?, challengeResponses: List<ChallengeResponse>?): ApiResult<Unit>