Class: RedsysRuby::PaymentsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/redsys_ruby/payments_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
# File 'app/controllers/redsys_ruby/payments_controller.rb', line 5

def index
  @order_id = Time.now.to_i.to_s[-12..-1] # Redsys order must be max 12 chars
  @amount = 10.50
end

#koObject



13
14
# File 'app/controllers/redsys_ruby/payments_controller.rb', line 13

def ko
end

#okObject



10
11
# File 'app/controllers/redsys_ruby/payments_controller.rb', line 10

def ok
end