question

jolly avatar image
jolly asked rachel Deactivated answered

Add Tax Rate with Order in android ?

I want to add custom service tax with the order i am try this

            TaxRate taxRate = new TaxRate();
            taxRate.setIsDefault(true);
            taxRate.setName("service");
            taxRate.setRate(30l);
            List<TaxRate> taxRates = new ArrayList<>(); taxRates.add(taxRate);
            lineItem.setTaxRates(taxRates);
            orderConnector.addServiceCharge(mOrder.getId(),"service");

to add service tax i think addservicecharges not add tax within order ,it take default service charges is their any suggestion ?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

rachel avatar image
rachel Deactivated answered

Hi @jolly-raiyani,

You're right, .addServiceCharge() is designed to work with the merchant's default service charge; creating a custom service charge on the fly to be added to an order is not supported behavior.

If a custom service charge is needed, what about adding it as a lineItem instead?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community