create Charge Intent
Creates a new charge intent, attaching the current Sonar session ID and live fraud signals before sending.
Important: Creating a charge intent is a server-only operation — your server owns the amount and must mint it with your secret key (
sk_). Under the publishable-key model the client retrieves/confirms a server-minted intent via itsclient_secret(see confirmChargeIntent). This method authenticates with the secret key and is retained for existing serverless in-app charge flows.
Return
A Pair containing the created ChargeIntent on success, or a NetworkingError on failure.
Parameters
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
The parameters for the charge intent to create.
Called with the created ChargeIntent on success, or a NetworkingError on failure.