Bagikan melalui


PaymentRequest Kelas

Definisi

Kelas yang berisi informasi tentang permintaan pembayaran. Kelas ini mencerminkan antarmuka PaymentRequest W3C.

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
Warisan
Object Platform::Object IInspectable PaymentRequest
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)

Keterangan

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1709 16299 PaymentRequest(PaymentDetails,IEnumerable<PaymentMethodData,PaymentMerchantInfo,PaymentOptions,String>)
1709 16299 Id

Konstruktor

PaymentRequest(PaymentDetails, IIterable<PaymentMethodData>)

Membuat objek PaymentRequest .

PaymentRequest(PaymentDetails, IIterable<PaymentMethodData>, PaymentMerchantInfo)

Membuat objek PaymentRequest .

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

Membuat objek PaymentRequest .

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

Membuat objek PaymentRequest baru.

Properti

Details

Detailnya

Id

Mendapatkan ID permintaan pembayaran.

MerchantInfo

Info pedagang.

MethodData

Koleksi kelas PaymentMethodData . Koleksi ini mewakili daftar metode pembayaran yang didukung oleh merchant.

Options

Opsinya.

Berlaku untuk