Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Tax format incorrect in the order endpoint #11795

@hsingyuc

Description

@hsingyuc

Describe the bug

In the order endpoint, the tax format is incorrect. We should wrap with prepare_money_response.

To reproduce

Steps to reproduce the behavior:

  1. Test the order endpoint wp-json/wc/store/v1/order/{ORDER_NUMBER}?key={KEY}&billing_email={BILLING_EMAIL}
  2. See the tax lines format is incorrect

Expected behavior

It should be showing in the string format without decimals. For example, 3.1 -> 310

Screenshots

Screen Shot 2023-11-15 at 6 53 44 PM

Environment

WordPress (please complete the following information):

  • WordPress version: [e.g. 5.9]
  • Gutenberg version (if installed): [e.g. 12.0.0]
  • WooCommerce version: [e.g. 6.1]
  • WooCommerce Blocks version: [e.g. 7.0.0]
  • Site language:
  • Any other plugins installed:

Desktop (please complete the following information):

  • OS: [e.g. macOS, Windows]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

type: bugThe issue/PR concerns a confirmed bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions