PaymentDetailsInit Class

The details of a payment request given to its constructor (https://w3c.github.io/payment-request/#paymentdetailsinit-dictionary).

public sealed class PaymentDetailsInit : PaymentDetailsBase
Inheritance
PaymentDetailsBase PaymentDetailsInit

Constructors

NameDescription
PaymentDetailsInit()

PaymentDetailsInit()

  • 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 PaymentDetailsInit()

No documentation is available.

Properties

NameDescription
IdGets the identifier of the payment request, or null to let the user agent generate a unique identifier.
TotalGets the total amount of the payment, which cannot be negative.

Gets the identifier of the payment request, or null to let the user agent generate a unique identifier.

public string? Id { get; init; }

Gets the total amount of the payment, which cannot be negative.

public required PaymentItem Total { get; init; }