Revert "Fix some attr_accessible problems to do with log entries, payments and PaypalAccount"
Already done by Andrew.
This reverts commit 51caa03295
.
This commit is contained in:
parent
51caa03295
commit
e539e1d5cf
|
@ -120,14 +120,13 @@ module Spree
|
|||
|
||||
paypal_account = Spree::PaypalAccount.find_by_payer_id(params[:PayerID])
|
||||
|
||||
payment = @order.payments.create({
|
||||
payment = @order.payments.create(
|
||||
:amount => ppx_auth_response.params["gross_amount"].to_f,
|
||||
:source => paypal_account,
|
||||
:source_type => 'Spree::PaypalAccount',
|
||||
:payment_method_id => params[:payment_method_id],
|
||||
:response_code => ppx_auth_response.params["ack"],
|
||||
:avs_response => ppx_auth_response.avs_result["code"]},
|
||||
:without_protection => true)
|
||||
:avs_response => ppx_auth_response.avs_result["code"])
|
||||
|
||||
payment.started_processing!
|
||||
|
||||
|
@ -177,7 +176,7 @@ module Spree
|
|||
end
|
||||
|
||||
def record_log(payment, response)
|
||||
payment.log_entries.create({:details => response.to_yaml}, :without_protection => true)
|
||||
payment.log_entries.create(:details => response.to_yaml)
|
||||
end
|
||||
|
||||
def redirect_to_paypal_express_form_if_needed
|
||||
|
|
|
@ -2,8 +2,6 @@ class Spree::PaypalAccount < ActiveRecord::Base
|
|||
attr_accessible :email, :payer_id, :payer_country, :payer_status
|
||||
has_many :payments, :as => :source
|
||||
|
||||
attr_accessible :email, :payer_id, :payer_country, :payer_status
|
||||
|
||||
def actions
|
||||
%w{capture credit}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue