PaymentCredentialInstrument Class

A payment instrument shown by the transaction dialog of Secure Payment Confirmation (https://w3c.github.io/secure-payment-confirmation/#sctn-paymentcredentialinstrument-dictionary).

public sealed class PaymentCredentialInstrument

Constructors

NameDescription
PaymentCredentialInstrument()

PaymentCredentialInstrument()

SecurePaymentConfirmation.cs
  • 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 PaymentCredentialInstrument()

No documentation is available.

Properties

NameDescription
DetailsGets additional details of the instrument (e.g. the last digits of a card), or null.
DisplayNameGets the name of the instrument.
IconGets the URL of the icon of the instrument (an https: or a data: URL).
IconMustBeShownGets whether the icon must be fetched and shown for the payment to be possible (the default); otherwise an icon that cannot be fetched is replaced by an empty string.

Gets additional details of the instrument (e.g. the last digits of a card), or null.

public string? Details { get; init; }

Gets the name of the instrument.

public required string DisplayName { get; init; }

Gets the URL of the icon of the instrument (an https: or a data: URL).

public required string Icon { get; init; }

Gets whether the icon must be fetched and shown for the payment to be possible (the default); otherwise an icon that cannot be fetched is replaced by an empty string.

public bool IconMustBeShown { get; init; }