Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

VoidRequest.cs

namespace PayPalCheckoutSdk.Payments;

/// 
/// Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been fully captured.
/// 
public class VoidRequest : PayPalHttp.HttpRequest
{
    public VoidRequest(string authorizationId) : base("/v2/payments/authorizations/{authorization_id}/void?", HttpMethod.Post, typeof(Authorization))
    {
        try
        {
            Path = Path.Replace("{authorization_id}", Uri.EscapeDataString(Convert.ToString(authorizationId)));
        }
        catch { }

        ContentType = "application/json";
    }

}