PaymentMediator.CanMakePaymentAsync(PaymentRequest) Method

Definition

This method checks if a payment can be made on the paymentRequest.

public:
 virtual IAsyncOperation<PaymentCanMakePaymentResult ^> ^ CanMakePaymentAsync(PaymentRequest ^ paymentRequest) = CanMakePaymentAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PaymentCanMakePaymentResult> CanMakePaymentAsync(PaymentRequest const& paymentRequest);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PaymentCanMakePaymentResult> CanMakePaymentAsync(PaymentRequest paymentRequest);
function canMakePaymentAsync(paymentRequest)
Public Function CanMakePaymentAsync (paymentRequest As PaymentRequest) As IAsyncOperation(Of PaymentCanMakePaymentResult)

Parameters

paymentRequest
PaymentRequest

The payment request to check.

Returns

Returns an asynchronous operation that completes with a bool indicating whether a payment can be made.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to