Beispiel #1
0
 /// <summary>
 /// Capture entire payment from an authorized order.
 /// </summary>
 /// <param name="orderCode">The code of the authorized order to capture.</param>
 /// <returns>Confirmation of the captured order</returns>
 public OrderResponse CaptureAuthorizedOrder(string orderCode)
 {
     return(Http.Post <CaptureRequest, OrderResponse>(String.Format("{0}/orders/{1}/capture", _baseUrl, orderCode), null));
 }
Beispiel #2
0
 /// <summary>
 /// Create a new order
 /// </summary>
 /// <param name="orderRequest">Details of the order to be created</param>
 /// <returns>Confirmation of the new order</returns>
 public OrderResponse Create(OrderRequest orderRequest)
 {
     return(Http.Post <OrderRequest, OrderResponse>(_baseUrl + "/orders", orderRequest));
 }
 /// <summary>
 /// Create a new order
 /// </summary>
 /// <param name="orderRequest">Details of the order to be created</param>
 /// <returns>Confirmation of the new order</returns>
 public async Task <OrderResponse> Create(OrderRequest orderRequest)
 {
     return(await Http.Post <OrderRequest, OrderResponse>(_baseUrl + "/orders", orderRequest));
 }
Beispiel #4
0
 /// <summary>
 /// Refund and existing order
 /// </summary>
 /// <param name="orderCode">The code of the order to be refunded</param>
 public void Refund(String orderCode)
 {
     Http.Post(String.Format("{0}/orders/{1}/refund", _baseUrl, orderCode), null);
 }
 /// <summary>
 /// Refund and existing order
 /// </summary>
 /// <param name="orderCode">The code of the order to be refunded</param>
 public async Task Refund(String orderCode)
 {
     await Http.Post(String.Format("{0}/orders/{1}/refund", _baseUrl, orderCode), null);
 }