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 PaymentCredentialInstrumentConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Details | Gets additional details of the instrument (e.g. the last digits of a card), or null. |
| DisplayName | Gets the name of the instrument. |
| Icon | Gets the URL of the icon of the instrument (an https: or a data: URL). |
| IconMustBeShown | 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. |
Details
SecurePaymentConfirmation.csGets additional details of the instrument (e.g. the last digits of a card), or null.
public string? Details { get; init; }DisplayName
SecurePaymentConfirmation.csGets 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; }IconMustBeShown
SecurePaymentConfirmation.csGets 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; }