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

#   HikaShop Credit Card Plugin Stopped Collecting First Part of No after update

##

- **[nickk](/forum/user/59388-nickk "View nickk's Profile")**
- [![nickk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59388-nickk "View nickk's Profile") Topic Author
- [ Offline](/forum/user/59388-nickk)

Less More

- Posts: 32
- Thank you received: 1
-
-

6 months 3 weeks ago [\#371541](#371541) by [nickk](/forum/user/59388-nickk "View nickk's Profile")  *[HikaShop Credit Card Plugin Stopped Collecting First Part of No after update](/forum/29-payment-methods/910456-hikashop-credit-card-plugin-stopped-collecting-first-part-of-no-after-update#371541 "-- HikaShop version -- : 6.4.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3 -- Browser(s) name and version -- : Chrome 147.0.7727.56  After upgrading Joomla and Hika Shop to the latest versions, the Hikashop credit card plugin continues to send the second half of the credit card number to the shop owner, but no longer collects the first part of the credit card number within the Order record. Is there a fix or do you have advice on troubleshooting this? Thanks!")* was created by *[nickk](/forum/user/59388-nickk "View nickk's Profile")*

-- HikaShop version -- : 6.4.0
-- Joomla version -- : 5.4.5
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Chrome 147.0.7727.56

After upgrading Joomla and Hika Shop to the latest versions, the Hikashop credit card plugin continues to send the second half of the credit card number to the shop owner, but no longer collects the first part of the credit card number within the Order record. Is there a fix or do you have advice on troubleshooting this? Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MTA0NTYtaGlrYXNob3AtY3JlZGl0LWNhcmQtcGx1Z2luLXN0b3BwZWQtY29sbGVjdGluZy1maXJzdC1wYXJ0LW9mLW5vLWFmdGVyLXVwZGF0ZT90bXBsPW1hcmtkb3du) 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: 86358
- Thank you received: 14293
-
-

6 months 3 weeks ago [\#371543](#371543) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[HikaShop Credit Card Plugin Stopped Collecting First Part of No after update](/forum/29-payment-methods/910456-hikashop-credit-card-plugin-stopped-collecting-first-part-of-no-after-update#371543 "-- HikaShop version -- : 6.4.0 -- Joomla version -- : 5.4.5 -- PHP version -- : 8.3 -- Browser(s) name and version -- : Chrome 147.0.7727.56  After upgrading Joomla and Hika Shop to the latest versions, the Hikashop credit card plugin continues to send the second half of the credit card number to the shop owner, but no longer collects the first part of the credit card number within the Order record. Is there a fix or do you have advice on troubleshooting this? Thanks!")*

Hello,

Thank you for the report. You're right, this is a regression that slipped into 6.4.0. During an internal refactoring of how payment plugins record information on orders, the step that stores the beginning of the credit card number on the order stopped being executed. The rest of the flow was not affected, which is why the end of the number still reaches the shop owner through the email notification as before.

We have just fixed the issue and it has been included in the 6.4.1 version of HikaShop we just released.

If you need the fix without updating, you can edit the file administrator/components/com_hikashop/helpers/paymentplugin.php. Near the top of the modifyOrder function, locate this line:

if(!empty($id) &amp;&amp; $id !== false) {

and change it to:

if(!empty($id) &#124;&#124; is_object($order_id)) {

After saving the file, new orders will again show the beginning of the credit card number in the backend.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MTA0NTYtaGlrYXNob3AtY3JlZGl0LWNhcmQtcGx1Z2luLXN0b3BwZWQtY29sbGVjdGluZy1maXJzdC1wYXJ0LW9mLW5vLWFmdGVyLXVwZGF0ZT90bXBsPW1hcmtkb3du) 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.044 seconds

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