C# Class PayPal.Api.Order

An order transaction.

See PayPal Developer documentation for more information.

Inheritance: PayPalRelationalObject
Afficher le fichier Open project: paypal/PayPal-NET-SDK Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Authorize ( APIContext apiContext ) : Authorization

Authorizes an order, by ID. Include an `amount` object in the JSON request body.

Authorize ( APIContext apiContext, Order order ) : Authorization

Creates an authorization on an order

Capture ( APIContext apiContext, Capture capture ) : Capture

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.

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

Creates (and processes) a new Capture Transaction added as a related resource.

Get ( APIContext apiContext, string orderId ) : Order

Shows details for an order, by ID.

Void ( APIContext apiContext ) : Order

Voids, or cancels, an order, by ID. You cannot void an order if a payment has already been partially or fully captured.

Void ( APIContext apiContext, string orderId ) : Order

Voids (cancels) an Order.

Method Details

Authorize() public méthode

Authorizes an order, by ID. Include an `amount` object in the JSON request body.
public Authorize ( APIContext apiContext ) : Authorization
apiContext APIContext APIContext used for the API call.
Résultat Authorization

Authorize() public static méthode

Creates an authorization on an order
public static Authorize ( APIContext apiContext, Order order ) : Authorization
apiContext APIContext APIContext used for the API call.
order Order Order object to authorize.
Résultat Authorization

Capture() public méthode

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
Résultat Capture

Capture() public static méthode

Creates (and processes) a new Capture Transaction added as a related resource.
public static Capture ( APIContext apiContext, string orderId, Capture capture ) : Capture
apiContext APIContext APIContext used for the API call.
orderId string ID of the order to capture.
capture Capture Capture
Résultat Capture

Get() public static méthode

Shows details for an order, by ID.
public static Get ( APIContext apiContext, string orderId ) : Order
apiContext APIContext APIContext used for the API call.
orderId string The ID of the order for which to show details.
Résultat Order

Void() public méthode

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.
Résultat Order

Void() public static méthode

Voids (cancels) an Order.
public static Void ( APIContext apiContext, string orderId ) : Order
apiContext APIContext APIContext used for the API call.
orderId string ID of the order to void.
Résultat Order