app/models/spree/adyen/notification_processor.rb
# normal event is defined as just AUTHORISATION
normal event is defined as just AUTHORISATION
normal event is defined as just AUTHORISATION
def handle_normal_event
        unless self.payment.response_code
          payment.response_code = notification.psp_reference
          payment.save
        end
        if notification.auto_captured?
          complete_payment!
        elsif payment.hpp_payment?
          payment.capture!
        end
        notification.processed!
      end
def handle_normal_event unless self . payment . response_code payment . response_code = notification . psp_reference payment . save end if notification . auto_captured? complete_payment! elsif payment . hpp_payment? payment . capture! end notification . processed! end
normal event is defined as just AUTHORISATION
normal event is defined as just AUTHORISATION
# Payment may not have psp_reference. Add this from notification if it # doesn't have one.