Method: Stall::PaymentNotificationService#call

Defined in:
app/services/stall/payment_notification_service.rb

#callObject



12
13
14
15
16
17
18
19
20
# File 'app/services/stall/payment_notification_service.rb', line 12

def call
  if gateway_response.valid?
    send_payment_notification_emails! if gateway_response.notify
  else
    raise UnknownNotificationError,
          "The payment notification request does not seem to come from " +
          "the \"#{ gateway_identifier }\" gateway."
  end
end