PaymentSheetModifier Class
A modifier of the details of a payment request (https://w3c.github.io/payment-request/#dom-paymentdetailsmodifier): the total and the line items that apply when the user selects a payment method.
public sealed class PaymentSheetModifier : IEquatable<PaymentSheetModifier>- Implements
Constructors
| Name | Description |
|---|---|
| PaymentSheetModifier(string, PaymentItem?, IReadOnlyList<PaymentItem>, string?) | A modifier of the details of a payment request (https://w3c.github.io/payment-request/#dom-paymentdetailsmodifier): the total and the line items that apply when the user selects a payment method. |
PaymentSheetModifier(string, PaymentItem?, IReadOnlyList<PaymentItem>, string?)
PaymentSheetPrompt.csA modifier of the details of a payment request (https://w3c.github.io/payment-request/#dom-paymentdetailsmodifier): the total and the line items that apply when the user selects a payment method.
public PaymentSheetModifier(string SupportedMethods, PaymentItem? Total, IReadOnlyList<PaymentItem> AdditionalDisplayItems, string? Data)Parameters
SupportedMethodsstring- The payment method identifier to which the modifier applies.
TotalPaymentItem?- The total that replaces the total of the details, or null.
AdditionalDisplayItemsIReadOnlyList<PaymentItem>- The line items appended to the line items of the details.
Datastring?- The data of the modifier serialized to JSON, or null.
Properties
| Name | Description |
|---|---|
| AdditionalDisplayItems | The line items appended to the line items of the details. |
| Data | The data of the modifier serialized to JSON, or null. |
| SupportedMethods | The payment method identifier to which the modifier applies. |
| Total | The total that replaces the total of the details, or null. |
AdditionalDisplayItems
PaymentSheetPrompt.csThe line items appended to the line items of the details.
public IReadOnlyList<PaymentItem> AdditionalDisplayItems { get; init; }Property value
SupportedMethods
PaymentSheetPrompt.csThe total that replaces the total of the details, or null.
public PaymentItem? Total { get; init; }Property value
Methods
| Name | Description |
|---|---|
| Deconstruct(string, PaymentItem?, IReadOnlyList<PaymentItem>, string?) | |
| Equals(PaymentSheetModifier?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Deconstruct(string, PaymentItem?, IReadOnlyList<PaymentItem>, string?)
public void Deconstruct(out string SupportedMethods, out PaymentItem? Total, out IReadOnlyList<PaymentItem> AdditionalDisplayItems, out string? Data)Parameters
SupportedMethodsstringTotalPaymentItem?AdditionalDisplayItemsIReadOnlyList<PaymentItem>Datastring?
No documentation is available.
Equals overloads
Equals(PaymentSheetModifier?)
public bool Equals(PaymentSheetModifier? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(PaymentSheetModifier?, PaymentSheetModifier?) | |
| operator !=(PaymentSheetModifier?, PaymentSheetModifier?) |
operator ==(PaymentSheetModifier?, PaymentSheetModifier?)
public static bool operator ==(PaymentSheetModifier? left, PaymentSheetModifier? right)No documentation is available.
operator !=(PaymentSheetModifier?, PaymentSheetModifier?)
public static bool operator !=(PaymentSheetModifier? left, PaymentSheetModifier? right)No documentation is available.