Share via


PaymentMethodData Class

Definition

A class containing data about a payment method. This class reflects the W3C PaymentMethodData dictionary.

public ref class PaymentMethodData sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentMethodDataFactory, 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 PaymentMethodData final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentMethodDataFactory), 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 PaymentMethodData
function PaymentMethodData(supportedMethodIds, jsonData)
Public NotInheritable Class PaymentMethodData
Inheritance
Object Platform::Object IInspectable PaymentMethodData
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

PaymentMethodData(IIterable<String>, String)

Creates a PaymentMethodData object.

PaymentMethodData(IIterable<String>)

Creates a PaymentMethodData object.

Properties

JsonData

Data about the payment method. For example, if the Basic Card Payment method is being used then this must contain data confirming to the BasicCardRequest dictionary type.

SupportedMethodIds

The supported method IDs.

Applies to