How do I keep my device secure when a customer enters their PIN?

You can turn on the Tap to Pay on iPhone Screen Lock setting for your payment app to lock your device screen during PIN entry. After the customer completes or cancels their PIN entry, unlock the device to continue the transaction.

On your iPhone, go to Settings > CheckoutX, then turn on Tap to Pay on iPhone Screen Lock.