runServerUpdate
suspend fun runServerUpdate(serverUpdate: suspend () -> Result<Unit>): CheckoutElementsController.OperationResult
Runs an async function that calls your server to update the Checkout Session, then automatically refreshes session with the latest session data.
A 20-second timeout is enforced. If serverUpdate doesn't complete within 20 seconds, this method returns an OperationResult.Failed with a timeout exception.
Parameters
serverUpdate
A suspend function that makes a request to your server to update the Checkout Session.