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


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

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']?


Ryan's picture
Joined: 08/07/2007
Juice: 15476
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
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
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!

Cipher's picture
Joined: 03/18/2014
Juice: 3
Credit Card Tokenization

I would suggest taking a look at PaymentVault http://www.auricsystems.com/products/paymentvault-tokenization/ for tokenization and off-site data storage.