---
title: "Verify changing the shipping address updates delivery and tax before payment"
description: "Change a checkout address between controlled regions and verify shipping options, tax basis, final total, and stored order address all update together."
canonical_url: "https://vostride.com/agent-library/checkout-payments/shipping-address-recalculation.md"
md_url: "https://vostride.com/agent-library/checkout-payments/shipping-address-recalculation.md"
content_kind: "recipe"
topic: "checkout-payments"
---

# Verify changing the shipping address updates delivery and tax before payment

Change a checkout address between controlled regions and verify shipping options, tax basis, final total, and stored order address all update together.

## Risk

Address changes affect more than a text field. An application can retain a shipping quote or tax calculation from the previous region and charge an amount inconsistent with the destination actually saved on the order.

## Fixtures

- Two test-owned delivery addresses in sandbox regions with distinct configured shipping and tax fixtures.
- A physical test product and independent expected totals for each supported region.
- Hooks that inspect the saved shipping address, selected rate identifier, tax lines, and payment amount.

## Steps

1. Enter the first fixture address and verify available shipping services and the total against the first region expected calculation.
2. Change to the second address before payment and verify incompatible shipping services disappear or require reselection according to policy.
3. Select a valid second-region service and verify address summary, shipping amount, tax lines, and grand total match the second independent calculation.
4. Complete the sandbox payment and verify the confirmation shows the second address and selected delivery service.
5. Inspect order and payment hooks to confirm the saved destination, rate identifier, tax calculation, and captured amount all correspond to the second region.

## Expected results

- Address changes invalidate or replace destination-dependent quotes as required.
- The final total reflects the selected address and delivery service.
- The stored order and payment use the same accepted destination-dependent calculation.

## False-pass traps

- An updated address summary can coexist with an old shipping rate identifier.
- Comparing only grand totals may miss offsetting errors between shipping and tax lines.

## Cleanup

- Cancel or refund the sandbox order and delete run-owned address-book entries.

## Use with agent-qa

Adapt this test design to your application's acceptance criteria and configured target using the [recipe execution guide](/agent-library/software-factory/turn-a-recipe-into-an-agent-qa-test.md). External fixture setup and non-UI checks require your own supported hooks or test tooling. Validate the authored test, execute it, and inspect the completed evidence; this recipe is not a recorded test result.

## References

- [agent-qa test](/docs/agent-qa/configuration/test.md)
- [agent-qa hooks](/docs/agent-qa/guides/hooks.md)
- [agent-qa auth state](/docs/agent-qa/guides/auth-state.md)

- [Checkout and payment QA recipes](/agent-library/checkout-payments.md)
- [Software factory QA library](/agent-library.md)
