Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The PaymentCurrencyAmount
dictionary describes an amount of money in terms of both a number of units and the currency (US dollars, Euro, yen, etc.), and is part of the Payment Request API. This is used to specify the prices of both line items on a payment, using PaymentItem
objects, and to provide the cost of a shipping option, using PaymentShippingOption
.
All properties are required.
currency
value
.value
These properties have been removed from the specification and should no longer be used.
currencySystem
Optional
value
. This has been removed; instead of allowing sites to choose the standard to use, ISO 4217 is always used for the currency
identifier now.Specification | Status | Comment |
---|---|---|
Payment Request API The definition of 'PaymentCurrencyAmount' in that specification. | Candidate Recommendation | Initial definition. |
No compatibility data found. Please contribute data for "api.PaymentCurrencyAmount" (depth: 1) to the MDN compatibility data repository.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PaymentCurrencyAmount