Orders creaed in hikashop

  • Posts: 58
  • Thank you received: 0
5 years 5 months ago #298648

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.10
-- PHP version -- : 5.6.36
-- Browser(s) name and version -- : Mozilla firefox

Hi,
I am using eway for payments, I got 2 orders that do not have matching record in eway. How can i track the payment of the orders created in hikashop but do not exist in eway. Payment was done using eway and there are Transaction Number, Your Reference Number, Invoice Reference. But when I search them in database in database i cant find matching record. Can you please help how can i get the matching number between hokashop order and eway payment.

Thanks

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
5 years 5 months ago #298654

Hi,

There are several eway payment plugins for HikaShop.
Supposing that you're using the one in HikaShop and not the eway rapid one, the payment occurs just before the order is created and if eway returns an error for the payment, the creation of the order is cancelled. So only orders with a successful payment can be created.
So the order id cannot be passed to eway as the order hasn't been created yet when the transaction is processed.
The current version of the eway payment plugin doesn't store the transaction number from eway in order either. However, you could add it by changing the line:

$history->data = '';
to:
$history->data = 'Transaction number: '. $eway->getTrxnNumber();
in the file plugins/hikashoppayment/eway/eway.php
We'll add a similar change on our end for the next version of HikaShop.
So existing orders there is no id or reference that you can use to match transactions and orders. However, you can find the payment with the time is was placed as it should be the same as the order creation date with a difference of maximum a few seconds.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum