POInvoicesService

Provides functionality related to invoices.

Properties

Link copied to clipboard

Subscribe to this flow to collect the result from authorizeInvoice invocation. Result contains invoiceId that was used for authorization.

Functions

Link copied to clipboard
abstract suspend fun authorize(request: POInvoiceAuthorizationRequest, threeDSService: PO3DSService): ProcessOutResult<Unit>

Authorize invoice with the given request and 3DS service implementation.

Link copied to clipboard
abstract fun authorizeInvoice(request: POInvoiceAuthorizationRequest, threeDSService: PO3DSService): Job

Authorize invoice with the given request and 3DS service implementation. Collect the result by subscribing to authorizeInvoiceResult flow before invoking this function. Returns coroutine job.

abstract fun authorizeInvoice(request: POInvoiceAuthorizationRequest, threeDSService: PO3DSService, callback: (ProcessOutResult<Unit>) -> Unit): Job

Authorize invoice with the given request and 3DS service implementation. Result provided in the callback. Returns coroutine job.

Link copied to clipboard

Captures native alternative payment.

Link copied to clipboard
Link copied to clipboard
abstract suspend fun invoice(request: POInvoiceRequest): ProcessOutResult<POInvoice>
abstract suspend fun invoice(invoiceId: String): ProcessOutResult<POInvoice>
abstract fun invoice(request: POInvoiceRequest, callback: ProcessOutCallback<POInvoice>)
abstract fun invoice(invoiceId: String, callback: ProcessOutCallback<POInvoice>)

Fetch invoice details.