getChargeIntent

suspend fun getChargeIntent(intentId: String, clientSecret: String): Pair<ChargeIntent?, NetworkingError?>

Retrieves a single server-minted charge intent in-app using its client_secret.

Return

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

Parameters

intentId

The ID of the charge intent to retrieve.

clientSecret

The charge intent's server-minted client_secret (ci_<id>_secret_…).


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

Retrieves a single server-minted charge intent in-app using its client_secret.

Parameters

intentId

The ID of the charge intent to retrieve.

clientSecret

The charge intent's server-minted client_secret (ci_<id>_secret_…).

completionHandler

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