POCustomerTokensService

Provides functionality related to customer tokens.

Properties

Link copied to clipboard

Subscribe to this flow to collect result from assignCustomerToken invocation.

Functions

Link copied to clipboard
abstract suspend fun assign(request: POAssignCustomerTokenRequest, threeDSService: PO3DSService): ProcessOutResult<POCustomerToken>

Assign new source to the existing customer token and optionally verify it with the given request and 3DS service implementation.

Link copied to clipboard
abstract fun assignCustomerToken(request: POAssignCustomerTokenRequest, threeDSService: PO3DSService): Job

Assign new source to the existing customer token and optionally verify it with the given request and 3DS service implementation. Collect the result by subscribing to assignCustomerTokenResult flow before invoking this function. Returns coroutine job.

abstract fun assignCustomerToken(request: POAssignCustomerTokenRequest, threeDSService: PO3DSService, callback: (ProcessOutResult<POCustomerToken>) -> Unit): Job

Assign new source to the existing customer token and optionally verify it with the given request and 3DS service implementation. Result provided in the callback. Returns coroutine job.

Link copied to clipboard

Deletes customer token.