Skip to content

fix: adjust billing collection logic - #1438

Open
pbennett1-godaddy wants to merge 16 commits into
mainfrom
fix-billing-collection-logic
Open

fix: adjust billing collection logic#1438
pbennett1-godaddy wants to merge 16 commits into
mainfrom
fix-billing-collection-logic

Conversation

@pbennett1-godaddy

@pbennett1-godaddy pbennett1-godaddy commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates billing collection so checkout consistently shows and validates only the information required for each delivery and payment flow.

  • Offline pickup collects names and optional phone because taxes use the pickup location.
  • Offline purchase and digital orders collect a billing address only when needed for taxes.
  • Free orders follow the same billing rules as offline orders.
  • Shipping orders can reuse the shipping address only when shipping-address collection is enabled.
  • enableBillingAddressCollection: false is respected across all flows.
  • Billing addresses are cleared when switching to a names-only flow.
  • Discounts recalculate taxes correctly for purchase and digital orders.

Changeset

  • Changeset added (docs)

Test Plan

Ran the full React package test suite:

pnpm --filter @godaddy/react test                                                                                                                                                                       

Also ran:

  pnpm --filter @godaddy/react build                                                                                                                                                                      
  pnpm --filter @godaddy/react typecheck                                                                                                                                                                  

Result:

  Test Files  52 passed                                                                                                                                                                                   
  Tests       551 passed                                                                                                                                                                                  
  Build       passed                                                                                                                                                                                      
  Typecheck   passed                                                                                                                                                                                      

@pbennett1-godaddy
pbennett1-godaddy requested a review from a team as a code owner August 19, 2026 15:22
@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3af3471

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@godaddy/react Patch
nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant