Class: TrustPayController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- TrustPayController
- Defined in:
- lib/generators/trust_pay_rails/templates/trust_pay_controller.rb
Instance Method Summary collapse
Instance Method Details
#cancel ⇒ Object
18 19 20 |
# 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 ⇒ Object
22 23 24 25 26 |
# 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 ⇒ Object
3 4 5 6 7 8 9 10 |
# 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 ⇒ Object
12 13 14 15 16 |
# 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 |