PaymentShippingOption Class

Definition

A class that contains information about a shipping option. This class reflects the W3C PaymentShippingOption dictionary.

public ref class PaymentShippingOption sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentShippingOptionFactory, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PaymentShippingOption final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentShippingOptionFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PaymentShippingOption
function PaymentShippingOption(label, amount, selected, tag)
Public NotInheritable Class PaymentShippingOption
Inheritance
Object Platform::Object IInspectable PaymentShippingOption
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Constructors

PaymentShippingOption(String, PaymentCurrencyAmount, Boolean, String)

Creates a new PaymentShippingOption object.

PaymentShippingOption(String, PaymentCurrencyAmount, Boolean)

Creates a new PaymentShippingOption object.

PaymentShippingOption(String, PaymentCurrencyAmount)

Creates a new PaymentShippingOption object.

Properties

Amount

The amount.

IsSelected

Indicates whether this shipping option is selected. A merchant is required to check that only a single shipping option within a request is marked as selected.

Label

The label.

Tag

The tag.

Applies to