PaymentRequestEventInit Class

The initialization dictionary of a PaymentRequestEvent (https://w3c.github.io/web-based-payment-handler/#paymentrequesteventinit-dictionary).

public sealed class PaymentRequestEventInit : ExtendableEventInit
Inheritance
ExtendableEventInit PaymentRequestEventInit

Constructors

NameDescription
PaymentRequestEventInit()

PaymentRequestEventInit()

public PaymentRequestEventInit()

No documentation is available.

Properties

NameDescription
MethodDataGets the payment methods of the request that the payment handler supports.
ModifiersGets the modifiers of the payment methods that the payment handler supports.
PaymentOptionsGets the information that the payment handler collects.
PaymentRequestIdGets the identifier of the payment request.
PaymentRequestOriginGets the origin of the document that created the payment request.
ShippingOptionsGets the shipping options.
TopOriginGets the origin of the top-level document of the payment request.
TotalGets the total of the payment.

Gets the payment methods of the request that the payment handler supports.

public IReadOnlyList<PaymentMethodData>? MethodData { get; init; }

Gets the modifiers of the payment methods that the payment handler supports.

public IReadOnlyList<PaymentDetailsModifier>? Modifiers { get; init; }

PaymentOptions

PaymentHandler.cs

Gets the information that the payment handler collects.

public PaymentOptions? PaymentOptions { get; init; }

PaymentRequestId

PaymentHandler.cs

Gets the identifier of the payment request.

public string? PaymentRequestId { get; init; }

PaymentRequestOrigin

PaymentHandler.cs

Gets the origin of the document that created the payment request.

public string? PaymentRequestOrigin { get; init; }

ShippingOptions

PaymentHandler.cs

Gets the origin of the top-level document of the payment request.

public string? TopOrigin { get; init; }