POInvoicesService
interface 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
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
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.