共用方式為


PaymentMethodData 類別

定義

類別,包含付款條件的相關資料。 這個類別會反映 W3C PaymentMethodData 字典

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
繼承
Object Platform::Object IInspectable PaymentMethodData
屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

建構函式

PaymentMethodData(IIterable<String>, String)

建立 PaymentMethodData 物件。

PaymentMethodData(IIterable<String>)

建立 PaymentMethodData 物件。

屬性

JsonData

付款條件的相關資料。 例如,如果使用 基本卡片付款條件 ,則這必須包含確認 至 BasicCardRequest 字典類型的資料。

SupportedMethodIds

支援的方法識別碼。

適用於