PaymentSheetErrors Class

The errors that the payment sheet shows to the user: the errors of the last update of the details by the page (https://w3c.github.io/payment-request/#dom-paymentdetailsupdate), or the errors given to PaymentResponse.retry() (https://w3c.github.io/payment-request/#dom-paymentvalidationerrors).

public sealed class PaymentSheetErrors

Constructors

NameDescription
PaymentSheetErrors()

PaymentSheetErrors()

public PaymentSheetErrors()

No documentation is available.

Properties

NameDescription
ErrorGets a general description of the error (e.g. why no shipping option is available for the address), or null.
PayerGets the errors of the payer details, or null.
PaymentMethodGets the errors specific to the payment method, serialized to JSON, or null.
ShippingAddressGets the errors of the shipping address, or null.

Gets a general description of the error (e.g. why no shipping option is available for the address), or null.

public string? Error { get; init; }

Property value

string?

Gets the errors of the payer details, or null.

public PayerErrors? Payer { get; init; }

Property value

PayerErrors?

Gets the errors specific to the payment method, serialized to JSON, or null.

public string? PaymentMethod { get; init; }

Property value

string?

ShippingAddress

PaymentSheetPrompt.cs

Gets the errors of the shipping address, or null.

public AddressErrors? ShippingAddress { get; init; }

Property value

AddressErrors?