How can I round order prices to avoid decimals?

Hi,

Is there any way to round the order price sent to payment gateways so that the price doesn’t involve decimals?

Our payment gateway reject prices with decimals.

Thanks.

Hi @yesyo

I’m sorry for your inconvenience.

There is a way to do this but it will require a change in the code. Please, what theme are you using? What payment gateway do you use? What are the charges that are automatically (delivery charges?) calculated in your store before checking for the checkout?

Hi @Morek

The theme we’re using is customized by ourselves and is based on Debut. We use ECPAY (https://www.ecpay.com.tw/Activities/ShopifyIntro), it’s a Taiwan company.

The problem is happening when applying discount codes on the checkout page.

Thanks.