PaymentSheetMethod Class

A payment method of a payment request: its identifier and its data (https://w3c.github.io/payment-request/#dfn-serializedmethoddata).

public sealed class PaymentSheetMethod : IEquatable<PaymentSheetMethod>
Implements

Constructors

NameDescription
PaymentSheetMethod(string, string?)A payment method of a payment request: its identifier and its data (https://w3c.github.io/payment-request/#dfn-serializedmethoddata).

PaymentSheetMethod(string, string?)

PaymentSheetPrompt.cs

A payment method of a payment request: its identifier and its data (https://w3c.github.io/payment-request/#dfn-serializedmethoddata).

public PaymentSheetMethod(string Identifier, string? Data)

Parameters

Identifier string
The payment method identifier, as given by the page (e.g. secure-payment-confirmation or https://example.com/pay).
Data string?
The data of the payment method serialized to JSON, or null when the page gave none.

Properties

NameDescription
DataThe data of the payment method serialized to JSON, or null when the page gave none.
IdentifierThe payment method identifier, as given by the page (e.g. secure-payment-confirmation or https://example.com/pay).

The data of the payment method serialized to JSON, or null when the page gave none.

public string? Data { get; init; }

Property value

string?

The payment method identifier, as given by the page (e.g. secure-payment-confirmation or https://example.com/pay).

public string Identifier { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(string, string?)
Equals(PaymentSheetMethod?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(string, string?)

public void Deconstruct(out string Identifier, out string? Data)

Parameters

Identifier string
Data string?

No documentation is available.

Equals overloads

Equals(PaymentSheetMethod?)

public bool Equals(PaymentSheetMethod? other)
Parameters
other PaymentSheetMethod?
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 ==(PaymentSheetMethod?, PaymentSheetMethod?)
operator !=(PaymentSheetMethod?, PaymentSheetMethod?)

operator ==(PaymentSheetMethod?, PaymentSheetMethod?)

public static bool operator ==(PaymentSheetMethod? left, PaymentSheetMethod? right)

Parameters

left PaymentSheetMethod?
right PaymentSheetMethod?

Returns

bool

No documentation is available.

operator !=(PaymentSheetMethod?, PaymentSheetMethod?)

public static bool operator !=(PaymentSheetMethod? left, PaymentSheetMethod? right)

Parameters

left PaymentSheetMethod?
right PaymentSheetMethod?

Returns

bool

No documentation is available.