To receive Ask to Buy notifications on your lock screen, make sure that the App Store is allowed to send time-sensitive notifications. You can check this by going to the Settings app, then navigating to Notifications -> App Store, and ensuring that the toggle for Allow Notifications is turned on and the toggle for Time Sensitive Notifications is enabled.