PaymentShippingOption Class

A shipping option that the user can choose (https://w3c.github.io/payment-request/#paymentshippingoption-dictionary).

public sealed class PaymentShippingOption

Constructors

NameDescription
PaymentShippingOption()

PaymentShippingOption()

  • 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 PaymentShippingOption()

No documentation is available.

Properties

NameDescription
AmountGets the cost of the option.
IdGets the identifier of the option, unique in the payment request.
LabelGets the description of the option.
SelectedGets whether the option is selected by default (the last selected option wins).

Gets the cost of the option.

public required PaymentCurrencyAmount Amount { get; init; }

Gets the identifier of the option, unique in the payment request.

public required string Id { get; init; }

Gets the description of the option.

public required string Label { get; init; }

Gets whether the option is selected by default (the last selected option wins).

public bool Selected { get; init; }