Share via


PaymentItem Classe

Définition

Cette classe représente un élément de paiement. Cette classe reflète le dictionnaire PaymentItem W3C.

public ref class PaymentItem sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentItemFactory, 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 PaymentItem final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentItemFactory), 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 PaymentItem
function PaymentItem(label, amount)
Public NotInheritable Class PaymentItem
Héritage
Object Platform::Object IInspectable PaymentItem
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Constructeurs

PaymentItem(String, PaymentCurrencyAmount)

Crée un objet PaymentItem . La propriété Pending a la valeur false par défaut.

Propriétés

Amount

Montant.

Label

Étiquette.

Pending

Indique que l’élément n’est peut-être pas encore finalisé. Par exemple, un marchand peut initialement indiquer le coût total en supposant qu’il sera expédié localement. Mais cette valeur peut changer si l’utilisateur fournit une adresse d’expédition à l’étranger, ce qui obligerait le commerçant à augmenter le prix pour tenir compte de l’expédition internationale.

S’applique à