x

Checkout API allows the customer to change their address after the sales tax is calculated

Our state has a sales tax and we sell instra-state as well.

When sending the order to the Checkout API, we need to calculate the tax using the users address.

We send both the tax and address with the order and set pre_populate_shipping_address to true

 

However on Squares checkout form, the user can change the address that was pre-populated. 

 

How do I guard against people enterning an out-of-state address, we calculate zero tax, the order is sent to the Checkout API, the user changes the address back to a taxable in-state address and the tax remains at zero since it's only generated when we submit the order?

The checkout form for the Square web-store has the ability to toggle the tax based on in/out of state address. Is there another workaround for this other than lettting the order go thru and validating at the end (looking up the order and comparing it to the transaction) and canceling the order? 

 

425 Views
Message 1 of 1
Report
0 REPLIES 0