public virtual Task <PaymentIntent> CancelAsync(string id, PaymentIntentCancelOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.RequestAsync(HttpMethod.Post, $"{this.InstanceUrl(id)}/cancel", options, requestOptions, cancellationToken)); }
public virtual PaymentIntent Cancel(string id, PaymentIntentCancelOptions options = null, RequestOptions requestOptions = null) { return(this.Request(HttpMethod.Post, $"{this.InstanceUrl(id)}/cancel", options, requestOptions)); }
public virtual Task <PaymentIntent> CancelAsync(string paymentIntentId, PaymentIntentCancelOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(this.PostRequestAsync <PaymentIntent>($"{this.InstanceUrl(paymentIntentId)}/cancel", options, requestOptions, cancellationToken)); }
public virtual PaymentIntent Cancel(string paymentIntentId, PaymentIntentCancelOptions options, RequestOptions requestOptions = null) { return(this.PostRequest <PaymentIntent>($"{this.InstanceUrl(paymentIntentId)}/cancel", options, requestOptions)); }
public virtual Task <PaymentIntent> CancelAsync(string paymentIntentId, PaymentIntentCancelOptions options, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(this.PostAsync($"{Urls.BaseUrl}/payment_intents/{paymentIntentId}/cancel", requestOptions, cancellationToken, options)); }
public virtual PaymentIntent Cancel(string paymentIntentId, PaymentIntentCancelOptions options, StripeRequestOptions requestOptions = null) { return(this.Post($"{Urls.BaseUrl}/payment_intents/{paymentIntentId}/cancel", requestOptions, options)); }