Class: FormCheckout

Inherits:
Object
  • Object
show all
Includes:
Forms::Models::Extension, Shop::Models::FormExtension
Defined in:
app/models/form_checkout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Shop::Models::FormExtension

included

Instance Attribute Details

#card=(value) ⇒ Object

Sets the attribute card

Parameters:

  • value

    the value to set the attribute card to.



5
6
7
# File 'app/models/form_checkout.rb', line 5

def card=(value)
  @card = value
end

#configObject

Returns the value of attribute config.



5
6
7
# File 'app/models/form_checkout.rb', line 5

def config
  @config
end

#dataObject

Returns the value of attribute data.



5
6
7
# File 'app/models/form_checkout.rb', line 5

def data
  @data
end

#gateway=(value) ⇒ Object

Sets the attribute gateway

Parameters:

  • value

    the value to set the attribute gateway to.



5
6
7
# File 'app/models/form_checkout.rb', line 5

def gateway=(value)
  @gateway = value
end

#resultObject

Returns the value of attribute result.



5
6
7
# File 'app/models/form_checkout.rb', line 5

def result
  @result
end

Instance Method Details

#createObject



7
8
9
10
11
12
13
14
15
# File 'app/models/form_checkout.rb', line 7

def create    
  find_current_order # locate the @order object
  
  create_result_object # A default response object
  
  create_order_payments
  
  @result
end