3 replies [Last post]
marco's picture
Offline
Joined: 05/29/2008
Juice: 16
Was this information Helpful?

Hi,

I'd like to show the last 4 digits of CC# in the confirmation email. So far I have managed to use uc_credit_display_number as follow

<?php
print uc_credit_display_number($order->payment_details['cc_number'], false);
?>

Perhaps it already exists (I could not find a list of available tokens Smiling. If not, is there a way to make a token out of $order->payment_details['cc_number']?

Thanks!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15450
Re: How to tokenize Credit Card Number?

Hmm... I guess I never thought about someone wanting to do this. A token could be defined in uc_credit.module for this. For the list of available tokens, check the Help page under Store administration in your admin menu. Smiling

marco's picture
Offline
Joined: 05/29/2008
Juice: 16
Re: Re: How to tokenize Credit Card Number?

Oops I didn't see the help page.... Thanks for the tip!

affinity's picture
Offline
Joined: 08/22/2008
Juice: 39
PHP code for creating a token?

Not being a programmer, my question is what is the code for creating such a token in uc_credit_module, and where should it be put? Also, is it possible, and if so how, to include the type of cc, such as Visa, MC, Amex, Discover?

Many thanks!