class Stall::Payments::GatewayResponse

Attributes

request[R]

Public Class Methods

new(request) click to toggle source
# File lib/stall/payments/gateway_response.rb, line 6
def initialize(request)
  @request = request
end

Public Instance Methods

cart() click to toggle source
# File lib/stall/payments/gateway_response.rb, line 26
def cart
  fail NotImplementedError, 'Stall::Payments::GatewayResponse ' \
    'subclasses should override the #cart method to allow the default ' \
    'payment processing.'
end
process() click to toggle source
# File lib/stall/payments/gateway_response.rb, line 22
def process
  valid? && success?
end
rendering_options() click to toggle source
# File lib/stall/payments/gateway_response.rb, line 10
def rendering_options
  { nothing: true }
end
success?() click to toggle source
# File lib/stall/payments/gateway_response.rb, line 14
def success?
  false
end
valid?() click to toggle source
# File lib/stall/payments/gateway_response.rb, line 18
def valid?
  false
end