Class: Admin::CreditcardPaymentsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/creditcard_payments_controller.rb

Instance Method Summary collapse

Instance Method Details

#captureObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'app/controllers/admin/creditcard_payments_controller.rb', line 15

def capture       
  if @creditcard_payment.can_capture?      
    #Creditcard.transaction do
    #  @order.state_events.create(:name => t('pay'), :user => current_user, :previous_state => order.state)
      @creditcard_payment.capture#(authorization)
    #end
    flash[:notice] = t("credit_card_capture_complete")
  else  
    flash[:error] = t("unable_to_capture_credit_card")    
  end 
  redirect_to edit_object_url
end

#country_changedObject



12
13
# File 'app/controllers/admin/creditcard_payments_controller.rb', line 12

def country_changed
end