Module: Unitpay::Controller

Defined in:
lib/unitpay/controller.rb

Defined Under Namespace

Classes: ErrorNotImplementedError, PayNotImplementedError, ServiceNotImplementedError

Instance Method Summary collapse

Instance Method Details

#failObject



23
24
25
# File 'lib/unitpay/controller.rb', line 23

def fail
  warn 'NotImplementedError'
end

#notifyObject



10
11
12
13
14
15
16
17
# File 'lib/unitpay/controller.rb', line 10

def notify
  if service.valid_notify_sign?(params[:params])
    send(params[:method])
    success_request
  else
    fail_request
  end
end

#successObject



19
20
21
# File 'lib/unitpay/controller.rb', line 19

def success
  warn 'NotImplementedError'
end