Can Onsite PaymentGateway Support Notification


I have seen many implementations of notification in OffsitePaymentGatewayBase Like WorldPay, QuickPay

Can I Extend the OnsitePaymentGatewayBase class and use onNotify() Method for receiving Payment notification?