cancelSubscriptionWith

Cancels an active subscription immediately.

Return

A pair containing the cancelled Subscription on success, or a NetworkingError on failure.

Parameters

subscriptionId

The unique ID of the subscription to cancel.


fun cancelSubscriptionWith(subscriptionId: String, completionHandler: (Subscription?, NetworkingError?) -> Unit)

Cancels an active subscription immediately and delivers the result via callback.

Parameters

subscriptionId

The unique ID of the subscription to cancel.

completionHandler

Invoked with the cancelled Subscription on success, or a NetworkingError on failure.