I am using the Authorize Direct Post Payment Method with EE 1.13. I need to export credit card payment details including cc_type and cc_last4. In sales_flat_order_payment cc_type is null and cc_last4 appears to be encrypted.
A few orders include cc_type
and the unencrypted cc_last4
in the additional_information field which looks like this:
a:1:{s:15:"authorize_cards";a:1:{s:32:"61cb8d50438f041ab581a381cd81f8e8";a:13:{s:2:"id";s:32:"61cb8d50438f041ab581a381cd81f8e8";s:16:"requested_amount";s:0:"";s:15:"balance_on_card";s:0:"";s:13:"last_trans_id";s:10:"2195591072";s:16:"processed_amount";s:5:"18.95";s:7:"cc_type";s:2:"VI";s:8:"cc_owner";N;s:8:"cc_last4";s:4:"1111";s:12:"cc_exp_month";s:1:"1";s:11:"cc_exp_year";s:4:"2015";s:11:"cc_ss_issue";N;s:17:"cc_ss_start_month";N;s:16:"cc_ss_start_year";N;}}}
But most payments additional_information field just looks like
a:1:{s:12:"payment_type";s:9:"authorize";}
Why do some payments include cc_type and cc_last4 in additional_information and some do not?
How do I reliably capture cc_type and cc_last4 prior to payment capture with auth.net Direct Post?