PaymentAddress.city

The city read-only property of the PaymentAddress interface returns a string containing the city or town portion of the address.

Syntax

var paymentCity = PaymentAddress.city;

Value

A DOMString indicating the city or town portion of the address described by the PaymentAddress object.

Specifications

Specification Status Comment
Payment Request API
The definition of 'PaymentAddress.city' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
cityChrome Full support 60Edge Full support 15Firefox No support No
Notes
No support No
Notes
Notes Available only in nightly builds.
IE No support NoOpera Full support 47Safari Full support 11.1WebView Android No support NoChrome Android Full support 56Firefox Android No support No
Notes
No support No
Notes
Notes Available only in nightly builds.
Opera Android Full support 44Safari iOS Full support 11.3Samsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
See implementation notes.
See implementation notes.