Automattic\WooCommerce\Internal\AddressProvider

AbstractAutomatticAddressProvider::get_address_service_jwtpublicWC 1.0

Get the JWT for the address service, a service should implement an A8C hosted API or some mechanism to get a JWT, this will be passed to frontend code to be used in the address autocomplete and maps.

This method shouldn't implement any caching, it should only fetch the token or throw an exception, if you must handle caching, consider also overriding get_jwt.

Method of the class: AbstractAutomatticAddressProvider{}

No Hooks.

Returns

String. The JWT for the address service.

Usage

$AbstractAutomatticAddressProvider = new AbstractAutomatticAddressProvider();
$AbstractAutomatticAddressProvider->get_address_service_jwt();

AbstractAutomatticAddressProvider::get_address_service_jwt() code WC 10.3.3

abstract public function get_address_service_jwt();