| Class | PaymentsController |
| In: |
app/controllers/payments_controller.rb
|
| Parent: | ApplicationController |
# 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