Class: Stall::Payments::ManualPaymentGateway::Request

Inherits:
GatewayRequest
  • Object
show all
Includes:
ChecksumCalculator
Defined in:
lib/stall/payments/manual_payment_gateway.rb

Instance Attribute Summary

Attributes inherited from GatewayRequest

#cart

Instance Method Summary collapse

Methods included from ChecksumCalculator

#calculate_checksum_for

Methods inherited from GatewayRequest

#initialize

Constructor Details

This class inherits a constructor from Stall::Payments::GatewayRequest

Instance Method Details

#checksumObject



40
41
42
# File 'lib/stall/payments/manual_payment_gateway.rb', line 40

def checksum
  calculate_checksum_for(token, reference, timestamp)
end

#payment_form_partial_pathObject



32
33
34
# File 'lib/stall/payments/manual_payment_gateway.rb', line 32

def payment_form_partial_path
  'stall/payments/manual_payment_gateway/form'
end

#timestampObject



36
37
38
# File 'lib/stall/payments/manual_payment_gateway.rb', line 36

def timestamp
  @timestamp ||= (Time.now.to_f * 1000).round.to_s
end