paypal_adaptive
paypal_adaptive copied to clipboard
Parameters filtered in log
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?
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