Price difference between HikaShop and WorldPay

  • Posts: 231
  • Thank you received: 4
  • Hikaserial Standard
7 years 9 months ago #262918

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

Hello,
In my HikaShop admin an order was created for a total of £38.68. The payment was processed by WorldPay.

However when I login to WorldPay and compare the transaction it is showing the price as £38.67.

It is only 0.01 difference but this order was not set to confirmed when the payment was approved at WorldPay and transferred back to the HikaShop website.

Why and how has this 0.01 discrepancy occurred? and can it be resolved so the HikaShop order matches the WorldPay amount?

Thanks

Lee

UPDATE: I have since had this reply from WorldPay:

Looking at the request logs for this transaction I can see that the amount sent through to Worldpay was: "amount":"38.674998"

This amount is sent through from the shopping cart and so they will need to resolve this, instead sending through the amount as valid pounds and pence (i.e. 2 decimal places).

Would setting the Configuration -> Settings -> Taxes -> Round prices during calculations options to Yes solve this issue?

Last edit: 7 years 9 months ago by ltempest.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #262923

Hi,

Unfortunately, the WorldPay plugin you're using has been developed by a third party developer so we cannot provide any advanced support on that plugin.
But it looks like WorldPay is processing itself the order total thanks to the cart details instead of using the "amount" which is provided.

In the plugin, please replace the line

'amount'   => $order->order_full_price,
By
'amount'   => round($order->order_full_price, (int)$this->currency->currency_locale['int_frac_digits']),
In order to provided a rounded amount to the platform ; so the price displayed by HikaShop and send to WorldPay would be identical.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.053 seconds
Powered by Kunena Forum