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

Capture() public method

Captures a payment for an order, by ID. To use this call, the original payment call must specify an intent of `order`. In the JSON request body, include the payment amount and indicate whether this capture is the final capture for the authorization.
public Capture ( APIContext apiContext, Capture capture ) : Capture
apiContext APIContext APIContext used for the API call.
capture Capture Capture
return Capture
        public Capture Capture(APIContext apiContext, Capture capture)
        {
            return Order.Capture(apiContext, this.id, capture);
        }

Same methods

Order::Capture ( APIContext apiContext, string orderId, Capture capture ) : Capture

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Captures a payment for an order, by ID. To use this call, the original payment call must specify an intent of `order`. In the JSON request body, include the payment amount and indicate whether this capture is the final capture for the authorization.
 /// </summary>
 /// <param name="apiContext">APIContext used for the API call.</param>
 /// <param name="capture">Capture</param>
 /// <returns>Capture</returns>
 public Capture Capture(APIContext apiContext, Capture capture)
 {
     return(Order.Capture(apiContext, this.id, capture));
 }