Class: Barion::MainController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Barion::MainController
- Defined in:
- app/controllers/barion/main_controller.rb
Overview
Barion engine’s main controller to receive callback and redirects
Instance Method Summary collapse
Instance Method Details
#callback ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/barion/main_controller.rb', line 8 def callback @payment = ::Barion::Payment.find_by_payment_id(payment_params) if @payment.present? head :ok @payment.refresh_state else head :unprocessable_entity end end |
#land ⇒ Object
18 19 20 |
# File 'app/controllers/barion/main_controller.rb', line 18 def land @payment = ::Barion::Payment.find_by_payment_id(payment_params) end |