Loading Dialog

The Scan to PayKit framework also offers a Loading dialog for any task that occurs just before invoking the checkout method. This gives a constant user experience. You may use this Dialog optionally.

See the code snippet below:

let Scan to Pay = MPScan to Pay() Scan to Pay.showLoadingDialogFromController(self)