class TrustPayController
Public Instance Methods
cancel()
click to toggle source
# File lib/generators/trust_pay_rails/templates/trust_pay_controller.rb, line 18 def cancel redirect_to root_url, notice: [t('.flash_message')] end
error()
click to toggle source
# File lib/generators/trust_pay_rails/templates/trust_pay_controller.rb, line 22 def error # TODO: process error redirect_to root_url, notice: [t('.flash_message')] end
notification()
click to toggle source
# File lib/generators/trust_pay_rails/templates/trust_pay_controller.rb, line 3 def notification if TrustPayRails::Signature.signature_match?(trust_pay_params) # TODO: store payment head :ok else head :unprocessable_entity end end
return()
click to toggle source
# File lib/generators/trust_pay_rails/templates/trust_pay_controller.rb, line 12 def return # TODO: process user return redirect_to root_url, notice: [t('.flash_message')] end
Private Instance Methods
trust_pay_params()
click to toggle source
# File lib/generators/trust_pay_rails/templates/trust_pay_controller.rb, line 30 def trust_pay_params @trust_pay_params ||= Hash[params.map{|k, v| [k.downcase.to_sym, v]}] end