Class: Wirecard::PaymentsController

Inherits:
Application
  • Object
show all
Includes:
Payify
Defined in:
app/controllers/wirecard/payments_controller.rb

Instance Method Summary collapse

Methods included from Payify

#build_current_payment, #current_payment_parent

Instance Method Details

#createObject


50
51
52
53
54
55
56
57
# File 'app/controllers/wirecard/payments_controller.rb', line 50

def create
  build_current_payment

  case current_payment.payment_type
    when 'CCARD' then persist_creditcard 
    else persist_payment
  end
end

#newObject

Actions



46
47
48
# File 'app/controllers/wirecard/payments_controller.rb', line 46

def new
  build_current_payment
end