View Single Post
  #18  
Old 08-06-2009, 03:00 PM
 
rshandel rshandel is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 125
 

Default Re: Last Four of Credit Card in Invoice Emails

Quote:
It would probably be best to modify $card_number to what you want stored in the orders table before this code and restore it afterwards to avoid problems elsewhere.

Thanks Ralph. Working in CC Manual mode right now. I now see that I can modify and write the last 4 digits to the customers table, but I'm having troubles with the code to modify card_number in the orders table.

This is what I have ...

Code:
# # Make order details # $_order_details_rval = array(); foreach (func_order_details_fields() as $_details_field => $_field_label) { if (isset($GLOBALS[$_details_field])) { if ($_field_label eq "Card number") { $store_card_number=$card_number; $card_number = substr($card_number,-4); $_details_field = $card_number; } $_order_details_rval[] = $_field_label.": ".stripslashes($GLOBALS[$_details_field]); } } $card_number = $store_card_number;


thanks.
__________________
x-cart 4.1.12
x-cart 4.2
Reply With Quote