安全上下文
此特征只可用于 安全上下文 (HTTPS),在某些或所有 支持浏览器 .

PaymentCurrencyAmount property currency is a string which specifies the currency in which the value 被指定。 The value is always specified using the 3-letter codes defined by the ISO 4127 标准。

句法

currency = paymentCurrencyAmount.currency;
					

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.

范例

This example represents the price of $42.95 in US dollars.

let itemPrice = {
  currency: "USD",
  value: "42.95"
};
					

规范

规范 状态 注释
支付请求 API
The definition of 'PaymentCurrencyAmount.currency' in that specification.
候选推荐

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

No compatibility data found. Please contribute data for "api.PaymentCurrencySystem.currency" (depth: 1) to the MDN 兼容性数据存储库 .

另请参阅

元数据

  • 最后修改: