Class: PaymentNotificationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PaymentNotificationsController
- Defined in:
- app/controllers/payment_notifications_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/controllers/payment_notifications_controller.rb', line 12 def create begin pm = PaymentHandler.create!(:params => params) if pm.accept? head :accepted else Rails.logger.fatal("Failed Transaction for cart_id #{pm.cart_id}: #{pm.errors}") head :bad_request end rescue => e Rails.logger.fatal(e) head :bad_request end end |
#index ⇒ Object
8 9 10 |
# File 'app/controllers/payment_notifications_controller.rb', line 8 def index create() end |