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

  • Posts: 32
  • Thank you received: 1
  • Hikashop Business
6 hours 10 minutes ago #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!

Please Log in or Create an account to join the conversation.

  • Posts: 85458
  • Thank you received: 13978
  • MODERATOR
2 hours 36 minutes ago #371543

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) && $id !== false) {

and change it to:

if(!empty($id) || 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 or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum