cancelChargeIntent

Cancels a charge intent, preventing it from being confirmed or captured.

Return

A Pair containing the updated ChargeIntent on success, or a NetworkingError on failure.

Parameters

intentId

The ID of the charge intent to cancel.


fun cancelChargeIntent(intentId: String, completionHandler: (ChargeIntent?, NetworkingError?) -> Unit)

Cancels a charge intent, preventing it from being confirmed or captured.

Parameters

intentId

The ID of the charge intent to cancel.

completionHandler

Called with the updated ChargeIntent on success, or a NetworkingError on failure.