completeAsync

fun completeAsync(result: PaymentComplete = definedExternally): Promise<Void>(source)

The PaymentRequest method complete() of the Payment Request API notifies the user agent that the user interaction is over, and causes any remaining user interface to be closed.

MDN Reference