TextRequestClient.CancelPaymentAsync(Int32, Int32, CancellationToken) Method

Definition

Cancels the specified payment

public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.CancelPaymentResponse> CancelPaymentAsync(int idOfTheDashboardToMakeThisCallOn, int idOfThePayment, System.Threading.CancellationToken cancellationToken = default);
abstract member CancelPaymentAsync : int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.CancelPaymentResponse>
override this.CancelPaymentAsync : int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.CancelPaymentResponse>
Public Overridable Function CancelPaymentAsync (idOfTheDashboardToMakeThisCallOn As Integer, idOfThePayment As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CancelPaymentResponse)

Parameters

idOfTheDashboardToMakeThisCallOn
Int32

Id of the dashboard to make this call on

idOfThePayment
Int32

Id of the payment

cancellationToken
CancellationToken

Cancellation token.

Returns

The Cancels the specified payment response.

Remarks

Cancels the specified payment, texting the user that the payment has been canceled. Payments cannot be edited, so canceling and issuing a new payment is the best way to correct a payment.

Applies to