cancelPreApproval

fun cancelPreApproval(apiVersion: String, referenceId: String, productSubscriptionKey: String, environment: String): ERROR CLASS: Symbol not found for Flow<io/rekast/sdk/repository/data/NetworkResult<kotlin/Unit>>

Cancels an active Collection pre-approval, immediately revoking the merchant's ability to debit the payer's wallet without per-transaction consent.

Return

A Flow emitting a NetworkResult with an empty Unit body on success.

Parameters

apiVersion

The version of the API to use.

referenceId

The UUID V4 reference ID used when calling createPreApproval.

productSubscriptionKey

The subscription key for the Collection product.

environment

The target environment (e.g., sandbox or production).