Class PaymentsController
In: app/controllers/payments_controller.rb
Parent: ApplicationController

Methods

create   find_order  

Public Instance methods

[Source]

    # File app/controllers/payments_controller.rb, line 31
31:   def create
32:     @order = Order.find params[:order_id]
33:     pay_key = params[:order].delete(:payment_authenticator)
34:     @order.attributes = params[:order]
35:     @order.pay_with( pay_key )
36:     if @order.save
37:       redirect_to order_payment_url(@order)
38:     else
39:       render :action => 'new'
40:     end
41:   end

[Source]

    # File app/controllers/payments_controller.rb, line 27
27:   def find_order
28:     @order = Order.find params[:order_id]
29:   end

[Validate]