Class: Wirecard::PaymentsController
- Inherits:
-
Application
- Object
- Application
- Wirecard::PaymentsController
- Includes:
- Payify
- Defined in:
- app/controllers/wirecard/payments_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#new ⇒ Object
Actions —————————————————————————————.
Methods included from Payify
#build_current_payment, #current_payment_parent
Instance Method Details
#create ⇒ Object
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 |
#new ⇒ Object
Actions
46 47 48 |
# File 'app/controllers/wirecard/payments_controller.rb', line 46 def new build_current_payment end |