removing notification

Esse commit está contido em:
Diogo Biazus
2012-06-07 23:35:20 -03:00
commit 6a1ef7158d
-4
Ver Arquivo
@@ -23,13 +23,9 @@ class PaypalController < ApplicationController
def success
backer = Backer.find params[:id]
begin
Airbrake.notify({ :error_class => "Paypal Error", :error_message => "Paypal Starting", :parameters => params}) rescue nil
details = @paypal.details params[:token]
Airbrake.notify({ :error_class => "Paypal Error", :error_message => "Paypal Details: #{details.inspect}", :parameters => params}) rescue nil
payment = paypal_payment(backer)
Airbrake.notify({ :error_class => "Paypal Error", :error_message => "Paypal Payment: #{payment.inspect}", :parameters => params}) rescue nil
checkout = @paypal.checkout!(params[:token], details.payer.identifier, payment)
Airbrake.notify({ :error_class => "Paypal Error", :error_message => "Paypal Checkout: #{checkout.inspect}", :parameters => params}) rescue nil
if checkout.payment_info.first.payment_status == "Completed"
backer.update_attributes({
:key => checkout.payment_info.first.transaction_id,