confirmTransfer

suspend fun confirmTransfer(transferId: String, request: TransferV2Requests.CreateTransferRequest? = null, idempotencyKey: String? = null): Pair<TransferV2?, NetworkingError?>

Confirms a deferred-confirm payment transfer (secret key).

Sends an Idempotency-Key (generated when idempotencyKey is null/blank).

Return

A Pair of (TransferV2?, NetworkingError?).

Parameters

transferId

The unique identifier of the transfer to confirm.

request

Optional confirm payload (source / payment method options).

idempotencyKey

Optional idempotency key; a UUID is generated when null.


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

Confirms a V2 transfer with a checkout-session bearer.

Confirm does not send Idempotency-Key. An empty id or token returns (null, null).


fun confirmTransfer(transferId: String, request: TransferV2Requests.CreateTransferRequest? = null, completionHandler: (TransferV2?, NetworkingError?) -> Unit)

Confirms a deferred-confirm payment transfer and delivers the result via a callback.

Parameters

transferId

The unique identifier of the transfer to confirm.

request

Optional confirm payload.

completionHandler

Callback invoked with (TransferV2?, NetworkingError?).


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

Confirms a V2 transfer with a checkout-session bearer.

Confirm does not send Idempotency-Key.