PaymentDetails Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class provides information about the requested transaction; it is passed to the PaymentRequest and PaymentRequestChangedResult constructors. This class reflects the W3C PaymentDetails dictionary.
public ref class PaymentDetails sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Payments.IPaymentDetailsFactory, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PaymentDetails final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Payments.IPaymentDetailsFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PaymentDetails
function PaymentDetails(total, displayItems)
Public NotInheritable Class PaymentDetails
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
If this class is used to update the payment request in PaymentRequestChangedResult, properties that are null indicate that property hasn't been changed and that the old property value should
Constructors
PaymentDetails() |
Creates a PaymentDetails object. |
PaymentDetails(PaymentItem, IIterable<PaymentItem>) |
Creates a PaymentDetails object. |
PaymentDetails(PaymentItem) |
Creates a PaymentDetails object. |
Properties
DisplayItems |
This is a collection of PaymentItem classes items for a payment request. These represent the breakdown of items in the payment request. Some examples are shoes or taxes. |
Modifiers |
A collection of PaymentDetailsModifier classes for which provide the ability to change the transaction cost based on the payment method used. |
ShippingOptions |
A collection of PaymentShippingOption classes for a payment request. |
Total |
This is the total cost of the transaction. |