The Pending Checkin notification template triggers based on the receipt time instead of scanning time. Pending Checkin functionality has a field called "Receipt Update Delay Minutes" which defines the duration after which the checkin become approved from pending state.
For example, if the Receipt Update Delay Minutes is set as 15 minutes and the guest scans the receipt after 15 mins of the receipt time. The Pending Checkin template will not be triggered.