Class: Payments::IntegrationsController
Instance Method Summary
collapse
caches_page_with_cache_marker, #raise_not_found!
Instance Method Details
#fail ⇒ Object
36
37
38
39
|
# File 'app/controllers/payments/integrations_controller.rb', line 36
def fail
find_structure('payments-fail')
respond_with @structure, layout: 'cabinet'
end
|
#new ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'app/controllers/payments/integrations_controller.rb', line 9
def new
options = { template: "payments/integrations/providers/#{@payment_type.code}", formats: [:html] }
if @payment_type.wire_transfer?
options[:layout] = 'cabinet'
find_structure('payments-wire-transfer')
else
set_payment_to_session(@payment)
end
render options
end
|
#success ⇒ Object
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'app/controllers/payments/integrations_controller.rb', line 22
def success
find_structure('payments-success')
theme = params[:theme] || 'success_terms'
respond_with @structure, layout: 'cabinet', locals: { theme: theme }
end
|