createChargeIntent

Creates a new charge intent, attaching the current Sonar session ID and live fraud signals before sending.

Return

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

Parameters

request

The parameters for the charge intent to create.


Creates a new charge intent, attaching the current Sonar session ID and live fraud signals before sending.

Executes the network request on a background thread and delivers the result to completionHandler.

Parameters

request

The parameters for the charge intent to create.

completionHandler

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