Share via


Windows.ApplicationModel.Payments Namespace

This namespace provides payment functionality equivalent to the W3C Payment Request API specification for Universal Windows Platform (UWP) apps. The W3C Payment Request API allows websites to collect payment information in a way that is easy for both the merchant and the user.

To use the Payment Request API, you will need to support one of the existing payment methods.

Classes

PaymentAddress

This class represents an address that is used in the Payment Request API. This class reflects the W3C PaymentAddress interface.

PaymentCanMakePaymentResult

This class serves as a result of the CanMakePaymentsAsync method.

PaymentCurrencyAmount

This class describes a monetary value associated with a purchase. For example, charges or discounts. This class reflects the W3C PaymentCurrencyAmount dictionary.

PaymentDetails

This class provides information about the requested transaction; it is passed to the PaymentRequest and PaymentRequestChangedResult constructors. This class reflects the W3C PaymentDetails dictionary.

PaymentDetailsModifier

This class is used when payment methods (see PaymentRequest.MethodData) have additional costs or discounts associated with them. This class reflects the W3C PaymentDetailsModifier dictionary.

PaymentItem

This class represents a payment item. This class reflects the W3C PaymentItem dictionary.

PaymentMediator

This class is used to submit payment requests.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

PaymentMerchantInfo

A class that contains information about a payment merchant.

PaymentMethodData

A class containing data about a payment method. This class reflects the W3C PaymentMethodData dictionary.

PaymentOptions

A class containing payment options. This class reflects the W3C PaymentOptions dictionary.

PaymentRequest

A class that contains information about a payment request. This class is reflects the W3C PaymentRequest interface.

PaymentRequestChangedArgs

A class containing arguments from the PaymentRequestChanged delegate.

PaymentRequestChangedResult

The result of the payment changed payment request.

PaymentRequestSubmitResult

A class containing the payment request submission result.

PaymentResponse

A class that contains the payment response. This class reflects the W3C PaymentResponse interface.

PaymentShippingOption

A class that contains information about a shipping option. This class reflects the W3C PaymentShippingOption dictionary.

PaymentToken

A class containing details about a payment token.

Enums

PaymentCanMakePaymentResultStatus

This enumeration represents the result of querying whether a payment can be made.

PaymentOptionPresence

An enumeration that indicates whether the option is required or optional.

PaymentRequestChangeKind

An enumeration indicating what was changed in the payment request.

PaymentRequestCompletionStatus

An enumeration that describes whether or not the transaction completed successfully.

PaymentRequestStatus

An enumeration that describes whether the user successfully accepted the payment request. See PaymentRequestSubmitResult.

PaymentShippingType

An enumeration that describes the shipping type.

Delegates

PaymentRequestChangedHandler

A handler that is triggered when a payment request has changed.