PaymentCurrencyAmount.currency - Web APIs 编辑
Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The PaymentCurrencyAmount
property currency
is a string which specifies the currency in which the value
is specified. The value is always specified using the 3-letter codes defined by the ISO 4127 standard.
Syntax
currency = paymentCurrencyAmount.currency;
Value
A DOMString
specifying the canonical, three-character currency identification code defined by the ISO 4217 standard. This is the currency in which the payment's value
is given. All currency values must include the currency system in this property.
Example
This example represents the price of $42.95 in US dollars.
let itemPrice = {
currency: "USD",
value: "42.95"
};
Specifications
Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'PaymentCurrencyAmount.currency' in that specification. | Candidate Recommendation |
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论