paypal_adaptive icon indicating copy to clipboard operation
paypal_adaptive copied to clipboard

Parameters filtered in log

Open rchekaluk opened this issue 10 years ago • 1 comments

When receiving an IPN, I observe that some parameters are filtered from the Rails log:

"transaction"=>{"0"=>{
  ".is_primary_receiver"=>"[FILTERED]", 
  ".id_for_sender_txn"=>"redacted", 
  ".receiver"=>"[FILTERED]", 
  ".amount"=>"USD 1.23", 
  ".refund_id"=>"redacted", 
  ".status"=>"Partially_Refunded", 
  ".id"=>"redacted", 
  ".refund_amount"=>"USD 0.30", 
  ".refund_account_charged"=>"redacted", 
  ".status_for_sender_txn"=>"Partially_Refunded", 
  ".paymentType"=>"SERVICE", 
  ".pending_reason"=>"NONE"
}},
...
"pay_key"=>"[FILTERED]", 
"preapproval_key"=>"[FILTERED]", 

I have not explicitly filtered these parameters in my application (using config.filter_parameters); what has configured these to be filtered?

rchekaluk avatar Aug 24 '15 13:08 rchekaluk

It's been a while but I think this is a purely a Rails thing? Try sending the data via IRB or rails console and seeing the log is still there.

On Mon, Aug 24, 2015 at 6:13 AM, rchekaluk [email protected] wrote:

When receiving an IPN, I observe that some parameters are filtered from the Rails log:

"transaction"=>{"0"=>{ ".is_primary_receiver"=>"[FILTERED]", ".id_for_sender_txn"=>"redacted", ".receiver"=>"[FILTERED]", ".amount"=>"USD 1.23", ".refund_id"=>"redacted", ".status"=>"Partially_Refunded", ".id"=>"redacted", ".refund_amount"=>"USD 0.30", ".refund_account_charged"=>"redacted", ".status_for_sender_txn"=>"Partially_Refunded", ".paymentType"=>"SERVICE", ".pending_reason"=>"NONE" }}, ... "pay_key"=>"[FILTERED]", "preapproval_key"=>"[FILTERED]",

I have not explicitly filtered these parameters in my application (using config.filter_parameters http://guides.rubyonrails.org/configuring.html#rails-general-configuration); what has configured these to be filtered?

— Reply to this email directly or view it on GitHub https://github.com/tc/paypal_adaptive/issues/84.

Tommy Chheng

tc avatar Aug 30 '15 02:08 tc