Class: Newebpay::DonationNotifyCallbacksController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Newebpay::DonationNotifyCallbacksController
- Defined in:
- app/controllers/newebpay/donation_notify_callbacks_controller.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Newebpay::ApplicationController
Instance Method Details
#proceed ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/newebpay/donation_notify_callbacks_controller.rb', line 5 def proceed raise NotImplementedError, 'Newebpay.config.donation_notify_callback is not a proc.' unless Newebpay.config.donation_notify_callback.is_a? Proc raise InvalidResponseError if params.blank? instance_exec(Newebpay::Donation::Response.new(params), self, ::Rails.application.routes.url_helpers, &Newebpay.config.donation_notify_callback) head 200 end |