Specify the Callback class names at Custom Settings > Config Custom Classes (Edit) > Tax Callback and Shipping Callback.
Apply the taxes and shipping charges using Computing Taxes for Cart Line Items and Computing Shipping for Cart Line Items. The Tax API creates and populates - the tax breakup for each applicable line item in the cart and the total Tax line and related breakup. The shipping API calculates the shipping amount for the entire order.