POInvoicesService
interface 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
abstract suspend fun captureNativeAlternativePayment(invoiceId: String, gatewayConfigurationId: String): ProcessOutResult<PONativeAlternativePaymentMethodCapture>
abstract fun captureNativeAlternativePayment(invoiceId: String, gatewayConfigurationId: String, callback: ProcessOutCallback<PONativeAlternativePaymentMethodCapture>)
Captures native alternative payment.
Link copied to clipboard
abstract suspend fun fetchNativeAlternativePaymentMethodTransactionDetails(invoiceId: String, gatewayConfigurationId: String): ProcessOutResult<PONativeAlternativePaymentMethodTransactionDetails>
abstract fun fetchNativeAlternativePaymentMethodTransactionDetails(invoiceId: String, gatewayConfigurationId: String, callback: ProcessOutCallback<PONativeAlternativePaymentMethodTransactionDetails>)
Fetch information to start or continue payment.
Link copied to clipboard
abstract suspend fun initiatePayment(request: PONativeAlternativePaymentMethodRequest): ProcessOutResult<PONativeAlternativePaymentMethod>
abstract fun initiatePayment(request: PONativeAlternativePaymentMethodRequest, callback: ProcessOutCallback<PONativeAlternativePaymentMethod>)
Initiates native alternative payment with the given request.
Link copied to clipboard
Fetch invoice details.