=== JPZAC  ===
Contributors: mamekichi
Requires at least: 7.0
Tested up to: 7.1
Stable tag: 1.3.6
WC requires at least: 8.1
WC tested up to: 11.1.2

License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

JPZAC automatically fills in Japanese addresses from postal codes during WooCommerce checkout using the Japan Post API.

== Description ==

JPZAC retrieves Japanese address information from postal codes using the Japan Post API.

The plugin supports WooCommerce Classic Checkout and Checkout Blocks.

To use JPZAC, you need a Japan Post Yu ID and API authentication credentials.

**Setup**

1. Obtain a Yu ID and sign in to the Japan Post Postal Code and Digital Address for Biz service.
2. For testing, obtain the credentials listed under "Test API Credentials" and the token and address search endpoints from the test API reference.
3. For production use, register a system in the system list and obtain your production Client ID and Client Secret.
4. Find the production token and address search endpoints in the API reference.
5. Enter these credentials and endpoints in the JPZAC settings page.

When entering the address search endpoint URL, remove the trailing `{search_code}` placeholder.

**Known Limitations**

- Digital Address lookup is not supported.
- Reverse lookup from an address to a postal code is not supported.

== Installation ==

1. Upload the plugin files to the `wp-content/plugins` directory.
2. Activate JPZAC through the WordPress Plugins menu.
3. Configure the Japan Post API credentials and endpoints in the JPZAC settings page.

== Uninstallation ==

Deactivate and delete JPZAC through the WordPress Plugins menu.

== External Services ==

JPZAC uses the Japan Post Postal Code and Digital Address API to retrieve Japanese address information from postal codes.

When a customer enters a postal code and an address lookup is required, 
the plugin sends the postal code to the Japan Post API through the WordPress server. 
API authentication credentials are also sent to Japan Post when obtaining an access token.

The service is provided by Japan Post Co., Ltd. 

JPZAC is an independently developed plugin and is not an official Japan Post product.

Service and Terms of Use:
https://org.biz.da.pf.japanpost.jp/terms


== Changelog ==
= 1.3.5 =
* Removed the Plugin Update Checker library.
* Improved address cache validation and recovery from invalid cached data.
* Improved Japan Post API response validation and error handling.

= 1.3.4 =
* Updated the Plugin Update Checker library to version 5.7.

= 1.3.3 =
* Added direct-access protection to all PHP files in the Plugin Update Checker library.

= 1.3.2 =
* Fixed duplicate address lookups for the same postal code.
* Removed obsolete processing code.

= 1.3.0 =
* Improved Checkout Blocks compatibility, React state synchronization, REST API portability, address selection usability, and performance.

= 1.2.5 =
* Added support for the WooCommerce My Account page.

= 1.2.4 =
* Improved compatibility with mobile browsers.

= 1.2.3 =
* Fixed an issue where manually entered postal codes could be overwritten by previous browser autofill values.

= 1.2.2 =
* Added error messages for invalid postal codes.

= 1.2.1 =
* Fixed conflicts with browser autofill.