POInvoicesService

Provides functionality related to invoices.

Properties

Link copied to clipboard

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

Functions

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

Authorize invoice with the given request and 3DS service implementation. Collect result by subscribing to authorizeInvoiceResult flow before invoking invoice authorization.

abstract fun authorizeInvoice(request: POInvoiceAuthorizationRequest, threeDSService: PO3DSService, callback: (ProcessOutResult<Unit>) -> Unit): 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.