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

Description
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:
- Test the order endpoint
wp-json/wc/store/v1/order/{ORDER_NUMBER}?key={KEY}&billing_email={BILLING_EMAIL}
- 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
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.