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

NameDescription
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.cs

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 PaymentSheetModifier(string SupportedMethods, PaymentItem? Total, IReadOnlyList<PaymentItem> AdditionalDisplayItems, string? Data)

Parameters

SupportedMethods string
The payment method identifier to which the modifier applies.
Total PaymentItem?
The total that replaces the total of the details, or null.
AdditionalDisplayItems IReadOnlyList<PaymentItem>
The line items appended to the line items of the details.
Data string?
The data of the modifier serialized to JSON, or null.

Properties

NameDescription
AdditionalDisplayItemsThe line items appended to the line items of the details.
DataThe data of the modifier serialized to JSON, or null.
SupportedMethodsThe payment method identifier to which the modifier applies.
TotalThe total that replaces the total of the details, or null.

AdditionalDisplayItems

PaymentSheetPrompt.cs

The line items appended to the line items of the details.

public IReadOnlyList<PaymentItem> AdditionalDisplayItems { get; init; }

The data of the modifier serialized to JSON, or null.

public string? Data { get; init; }

Property value

string?

SupportedMethods

PaymentSheetPrompt.cs

The payment method identifier to which the modifier applies.

public string SupportedMethods { get; init; }

Property value

string

The total that replaces the total of the details, or null.

public PaymentItem? Total { get; init; }

Property value

PaymentItem?

Methods

NameDescription
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

SupportedMethods string
Total PaymentItem?
AdditionalDisplayItems IReadOnlyList<PaymentItem>
Data string?

No documentation is available.

Equals overloads

Equals(PaymentSheetModifier?)

public bool Equals(PaymentSheetModifier? other)
Parameters
other PaymentSheetModifier?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
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.