PayPal.Api.Order.Void C# (CSharp) Method

Void() public method

Voids, or cancels, an order, by ID. You cannot void an order if a payment has already been partially or fully captured.
public Void ( APIContext apiContext ) : Order
apiContext APIContext APIContext used for the API call.
return Order
        public Order Void(APIContext apiContext)
        {
            return Order.Void(apiContext, this.id);
        }

Same methods

Order::Void ( APIContext apiContext, string orderId ) : Order

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Voids, or cancels, an order, by ID. You cannot void an order if a payment has already been partially or fully captured.
 /// </summary>
 /// <param name="apiContext">APIContext used for the API call.</param>
 /// <returns>Order</returns>
 public Order Void(APIContext apiContext)
 {
     return(Order.Void(apiContext, this.id));
 }