Retriggering a Cart Transform function

So I’m wanting to use the update method on the Cart Transform API to basically handle excise tax for different products, so what I’m thinking of adding a ‘state’ selector in the theme before checkout to get the user to select their state, this would be stored as a cart attribute which I can then read in the cart transform function and update prices of products accordingly.

Now this isn’t too ideal and I’d prefer to just run it off the state the user selects for their delivery address. The question is can I re-trigger the cart transform function to rerun after the user has selected their state?

Okay I think this idea may be sunk in the water already as I don’t think I can even retrieve the state/province in the input of the Cart Transform API, unless I’m missing something?

Hey Luke,

I’ve connected with the internal team for this space, and they’ve said the Cart Transform API doesn’t provide direct access to the checkout fields, ie: state/province entered by a customer. The API is primarily designed to manipulate cart data before the checkout process, and it doesn’t have access to the checkout-specific details like shipping or billing addresses.