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?


1 Answer 1


I have raised this question to slack for drupal commerce and they responded. the Response is below

Slack Answer: your payment gateway must implement https://git.drupalcode.org/project/commerce/-/blob/8.x-2.x/modules/payment/src/Plugin/Commerce/PaymentGateway/SupportsNotificationsInterface.php the interface for offsite payment gateway is already extending that. that's why it's available for every offsite gateway, but needs to be added explicitly for onsites

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.