- Posts: 237
- Thank you received: 5
Price difference between HikaShop and WorldPay
9 years 7 months ago - 9 years 7 months ago #262918
by ltempest
Price difference between HikaShop and WorldPay was created by ltempest
-- 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?
-- 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: 9 years 7 months ago by ltempest.
Please Log in or Create an account to join the conversation.
9 years 7 months ago #262923
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Price difference between HikaShop and WorldPay
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
By
In order to provided a rounded amount to the platform ; so the price displayed by HikaShop and send to WorldPay would be identical.
Regards,
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
Code:
'amount' => $order->order_full_price,
Code:
'amount' => round($order->order_full_price, (int)$this->currency->currency_locale['int_frac_digits']),
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.125 seconds