confirm

Confirms the payment for the customer's currently selected payment option.

The result is delivered to the CheckoutElementsController.ResultCallback supplied when building the CheckoutElementsController. If confirmation cannot start because checkout is not ready or another operation is in progress, the callback receives CheckoutElementsController.Result.Failed with an IllegalStateException explaining the reason. Each rejected call delivers its own failure without interrupting an active payment flow.

May be called from any thread. Calls from a background thread are dispatched to the main thread.