PaymentMethodData Class

A payment method accepted by a payment request (https://w3c.github.io/payment-request/#paymentmethoddata-dictionary).

public sealed class PaymentMethodData

Constructors

NameDescription
PaymentMethodData()

PaymentMethodData()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public PaymentMethodData()

No documentation is available.

Properties

NameDescription
DataGets the data of the payment method (a JavaScript object, or a value that can be serialized to JSON from .NET), or null.
SupportedMethodsGets the payment method identifier: a standardized identifier (e.g. secure-payment-confirmation) or an https: URL.

Gets the data of the payment method (a JavaScript object, or a value that can be serialized to JSON from .NET), or null.

public object? Data { get; init; }

SupportedMethods

PaymentDictionaries.cs

Gets the payment method identifier: a standardized identifier (e.g. secure-payment-confirmation) or an https: URL.

public required string SupportedMethods { get; init; }