getTransferWith

suspend fun getTransferWith(transferId: String): Pair<TransferV2?, NetworkingError?>

Retrieves an existing V2 transfer by its identifier.

Return

A Pair of (TransferV2?, NetworkingError?).

Parameters

transferId

The unique identifier of the transfer to retrieve.


suspend fun getTransferWith(transferId: String, checkoutClientSecret: String): Pair<TransferV2?, NetworkingError?>

Retrieves a V2 transfer with a checkout-session bearer.

The transfer must belong to the session. An empty id or token returns (null, null).


fun getTransferWith(transferId: String, completionHandler: (TransferV2?, NetworkingError?) -> Unit)

Retrieves an existing V2 transfer by its identifier and delivers the result via a callback.

Parameters

transferId

The unique identifier of the transfer to retrieve.

completionHandler

Callback invoked with (TransferV2?, NetworkingError?).


fun getTransferWith(transferId: String, checkoutClientSecret: String, completionHandler: (TransferV2?, NetworkingError?) -> Unit)

Retrieves a V2 transfer with a checkout-session bearer.