The PaymentRequest method complete() of the Payment Request API notifies the user interface to be closed.
complete()
MDN Reference