[Skip to main content](#vessel-content)

#   Incorrect XXXX-ing of credit card number

##

- **[mollyf](/forum/user/549-mollyf "View mollyf's Profile")**
- [![mollyf's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar549.jpg)](/forum/user/549-mollyf "View mollyf's Profile") Topic Author
- [ Offline](/forum/user/549-mollyf)

Less More

- Posts: 27
- Thank you received: 0
-
-

15 years 10 months ago [\#6113](#6113) by [mollyf](/forum/user/549-mollyf "View mollyf's Profile")  *[Incorrect XXXX-ing of credit card number](/forum/4-how-to/6113-incorrect-xxxx-ing-of-credit-card-number#6113 "I have modified files way beyond my level of competence and now I don't know where to go to repair this. I (mostly) like the way things look here, but now the last digits of the credit card number are...")* was created by *[mollyf](/forum/user/549-mollyf "View mollyf's Profile")*

I have modified files way beyond my level of competence and now I don't know where to go to repair this. I (mostly) like the way things look here, but now the last digits of the credit card number are showing incorrectly on the confirmation screen when they are XXXX-ed.

The site is here:
[ www.mirocellars.com/index.php/wine-shop.html](https://www.mirocellars.com/index.php/wine-shop.html) [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/paymentmethod_screen.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/paymentmethod_screen.png "&#91;img")

- [ ![paymentmethod&#95;screen.png](/forum/attachment/380) ](/forum/attachment/380 "...hod&#95;screen.png") [ ](/forum/attachment/380?download=1 "...hod&#95;screen.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMTMtaW5jb3JyZWN0LXh4eHgtaW5nLW9mLWNyZWRpdC1jYXJkLW51bWJlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 10 months ago [\#6117](#6117) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Incorrect XXXX-ing of credit card number](/forum/4-how-to/6113-incorrect-xxxx-ing-of-credit-card-number#6117 "I have modified files way beyond my level of competence and now I don't know where to go to repair this. I (mostly) like the way things look here, but now the last digits of the credit card number are...")*

Could you post the code handling the XXXing of the CC number you have ? You can also revert your changes in the files as there is a delete customization icon on the views files listing in Display-&gt;Views.
The view file handling that part is the file payment of the view checkout.

You should have something like that:
echo str_repeat("X", strlen($cc_number)-4) . substr($cc_number,strlen($cc_number)-5);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMTMtaW5jb3JyZWN0LXh4eHgtaW5nLW9mLWNyZWRpdC1jYXJkLW51bWJlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mollyf](/forum/user/549-mollyf "View mollyf's Profile")**
- [![mollyf's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar549.jpg)](/forum/user/549-mollyf "View mollyf's Profile") Topic Author
- [ Offline](/forum/user/549-mollyf)

Less More

- Posts: 27
- Thank you received: 0
-
-

15 years 10 months ago [\#6121](#6121) by [mollyf](/forum/user/549-mollyf "View mollyf's Profile")  Replied by *[mollyf](/forum/user/549-mollyf "View mollyf's Profile")* on topic *[Re: Incorrect XXXX-ing of credit card number](/forum/4-how-to/6113-incorrect-xxxx-ing-of-credit-card-number#6121 "I have modified files way beyond my level of competence and now I don't know where to go to repair this. I (mostly) like the way things look here, but now the last digits of the credit card number are...")*

Oh good, delete customization. I didn't see that.

This is the closest I can find to what you wrote

&lt;?php echo "XXXXXXXXXXX" . substr($cc_number,strlen($cc_number)-5,4);?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMTMtaW5jb3JyZWN0LXh4eHgtaW5nLW9mLWNyZWRpdC1jYXJkLW51bWJlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

15 years 10 months ago [\#6123](#6123) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Incorrect XXXX-ing of credit card number](/forum/4-how-to/6113-incorrect-xxxx-ing-of-credit-card-number#6123 "I have modified files way beyond my level of competence and now I don't know where to go to repair this. I (mostly) like the way things look here, but now the last digits of the credit card number are...")*

Yes. Change it to what I wrote (with the php tags).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMTMtaW5jb3JyZWN0LXh4eHgtaW5nLW9mLWNyZWRpdC1jYXJkLW51bWJlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mollyf](/forum/user/549-mollyf "View mollyf's Profile")**
- [![mollyf's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar549.jpg)](/forum/user/549-mollyf "View mollyf's Profile") Topic Author
- [ Offline](/forum/user/549-mollyf)

Less More

- Posts: 27
- Thank you received: 0
-
-

15 years 10 months ago [\#6125](#6125) by [mollyf](/forum/user/549-mollyf "View mollyf's Profile")  Replied by *[mollyf](/forum/user/549-mollyf "View mollyf's Profile")* on topic *[Re: Incorrect XXXX-ing of credit card number](/forum/4-how-to/6113-incorrect-xxxx-ing-of-credit-card-number#6125 "I have modified files way beyond my level of competence and now I don't know where to go to repair this. I (mostly) like the way things look here, but now the last digits of the credit card number are...")*

Yes, that works beautifully. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMTMtaW5jb3JyZWN0LXh4eHgtaW5nLW9mLWNyZWRpdC1jYXJkLW51bWJlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
