PaymentRequest 类

定义

一个类,其中包含有关付款请求的信息。 此类反映了 W3C PaymentRequest 接口

public ref class PaymentRequest sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentRequestFactory, 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 PaymentRequest final
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentRequestFactory, 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)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentRequestFactory2, 327680, "Windows.Foundation.UniversalApiContract")]
class PaymentRequest final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentRequestFactory), 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 PaymentRequest
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentRequestFactory), 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)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentRequestFactory2), 327680, "Windows.Foundation.UniversalApiContract")]
public sealed class PaymentRequest
function PaymentRequest(details, methodData, merchantInfo, options)
function PaymentRequest(details, methodData, merchantInfo, options, id)
Public NotInheritable Class PaymentRequest
继承
Object Platform::Object IInspectable PaymentRequest
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

注解

版本历史记录

Windows 版本 SDK 版本 增值
1709 16299 PaymentRequest (PaymentDetails,IEnumerable<PaymentMethodData>,PaymentMerchantInfo,PaymentOptions,String)
1709 16299 ID

构造函数

PaymentRequest(PaymentDetails, IIterable<PaymentMethodData>)

创建 PaymentRequest 对象。

PaymentRequest(PaymentDetails, IIterable<PaymentMethodData>, PaymentMerchantInfo)

创建 PaymentRequest 对象。

PaymentRequest(PaymentDetails, IIterable<PaymentMethodData>, PaymentMerchantInfo, PaymentOptions)

创建 PaymentRequest 对象。

PaymentRequest(PaymentDetails, IIterable<PaymentMethodData>, PaymentMerchantInfo, PaymentOptions, String)

创建新的 PaymentRequest 对象。

属性

Details

详细信息

Id

获取付款请求 ID。

MerchantInfo

商家信息。

MethodData

PaymentMethodData 类的集合。 此集合表示商家支持的付款方式列表。

Options

选项。

适用于