get Charge Intent
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
intent Id
The ID of the charge intent to retrieve.
client Secret
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
intent Id
The ID of the charge intent to retrieve.
client Secret
The charge intent's server-minted client_secret (ci_<id>_secret_…).
completion Handler
Called with the ChargeIntent on success, or a NetworkingError on failure.