C# Class PayPal.Api.Capture

A capture transaction.

See PayPal Developer documentation for more information.

Inheritance: PayPalRelationalObject
Show file Open project: paypal/PayPal-NET-SDK Class Usage Examples

Private Properties

Property Type Description
Refund Refund
Refund Refund

Public Methods

Method Description
Get ( APIContext apiContext, string captureId ) : Capture

Shows details for a captured payment, by ID.

Refund ( APIContext apiContext, string captureId, RefundRequest refundRequest ) : DetailedRefund

Refunds a captured payment, by ID. Include an `amount` object in the JSON request body.

Private Methods

Method Description
Refund ( APIContext apiContext, Refund refund ) : Refund
Refund ( APIContext apiContext, string captureId, Refund refund ) : Refund

Method Details

Get() public static method

Shows details for a captured payment, by ID.
public static Get ( APIContext apiContext, string captureId ) : Capture
apiContext APIContext APIContext used for the API call.
captureId string The ID of the captured payment for which to show details.
return Capture

Refund() public static method

Refunds a captured payment, by ID. Include an `amount` object in the JSON request body.
public static Refund ( APIContext apiContext, string captureId, RefundRequest refundRequest ) : DetailedRefund
apiContext APIContext APIContext used for the API call.
captureId string
refundRequest RefundRequest RefundRequest
return DetailedRefund