compactParams

fun compactParams(params: Map<String, *>): Map<String, Any>

Copy the {@param params} map and recursively remove null and empty values. The Stripe API requires that parameters with null values are removed from requests.

Parameters

params

a Map from which to remove the keys that have null values