PaymentSheetDetails Class

The details of a payment request shown by the payment sheet (https://w3c.github.io/payment-request/#dfn-details): the details given to the constructor, updated by the page. The amounts are valid, and their currency codes are in upper case.

public sealed class PaymentSheetDetails

Properties

NameDescription
DisplayItemsGets the line items of the payment.
IdGets the identifier of the payment request.
ModifiersGets the modifiers of the details for particular payment methods (the last applicable modifier wins).
ShippingOptionsGets the shipping options that the user can choose from (empty when the request does not request shipping).
TotalGets the total amount of the payment.

Gets the line items of the payment.

public IReadOnlyList<PaymentItem> DisplayItems { get; }

Gets the identifier of the payment request.

public string Id { get; }

Property value

string

Gets the modifiers of the details for particular payment methods (the last applicable modifier wins).

public IReadOnlyList<PaymentSheetModifier> Modifiers { get; }

ShippingOptions

PaymentSheetPrompt.cs

Gets the shipping options that the user can choose from (empty when the request does not request shipping).

public IReadOnlyList<PaymentShippingOption> ShippingOptions { get; }

Gets the total amount of the payment.

public PaymentItem Total { get; }

Property value

PaymentItem