PaymentItem Class

A line item of a payment (https://w3c.github.io/payment-request/#paymentitem-dictionary).

public sealed class PaymentItem

Constructors

NameDescription
PaymentItem()

PaymentItem()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public PaymentItem()

No documentation is available.

Properties

NameDescription
AmountGets the amount of the item.
LabelGets the description of the item.
PendingGets whether the amount is not final (e.g. a shipping cost that depends on the address).

Gets the amount of the item.

public required PaymentCurrencyAmount Amount { get; init; }

Gets the description of the item.

public required string Label { get; init; }

Gets whether the amount is not final (e.g. a shipping cost that depends on the address).

public bool Pending { get; init; }