Object passed in to OnVoidPaymentResopnse
Inheritance: BaseResponse
コード例 #1
0
 public virtual void OnVoidPaymentResponse(VoidPaymentResponse response)
 {
 }
コード例 #2
0
ファイル: MainTest.cs プロジェクト: clover/remote-pay-windows
 public void OnVoidPaymentResponse(VoidPaymentResponse response)
 {
     System.Console.WriteLine("Void Response: " + response.Result);
     //this.cloverConnector.Voids.Remove(this);
     this.cloverConnector = null;
     this.voidPaymentResponse = response;
     this.hasResponse = true;
 }
コード例 #3
0
 public void OnVoidPaymentResponse(VoidPaymentResponse response)
 {
     Send("/VoidPaymentResponse", Serialize(response));
 }
コード例 #4
0
 public void OnVoidPaymentResponse(VoidPaymentResponse response)
 {
     bool voided = false;
     foreach (POSOrder order in Store.Orders)
     {
         foreach (POSExchange payment in order.Payments)
         {
             if (payment.PaymentID == response.PaymentId)
             {
                 ((POSPayment)payment).PaymentStatus = POSPayment.Status.VOIDED;
                 order.Status = POSOrder.OrderStatus.OPEN; //re-open order for editing/payment
                 voided = true;
                 break;
             }
         }
         if (voided)
         {
             break;
         }
     }
     uiThread.Send(delegate (object state) {
         VoidButton.Enabled = false;
         RefundPaymentButton.Enabled = false;
     }, null);
 }
コード例 #5
0
 public void OnVoidPaymentResponse(VoidPaymentResponse response)
 {
 }
コード例 #6
0
 public void OnVoidPaymentResponse(VoidPaymentResponse response)
 {
     bool voided = false;
     foreach (POSOrder order in Store.Orders)
     {
         foreach (POSPayment payment in order.Payments)
         {
             if(payment.PaymentID == response.PaymentId)
             {
                 payment.PaymentStatus = POSPayment.Status.VOIDED;
                 voided = true;
                 break;
             }
         }
         if(voided)
         {
             break;
         }
     }
     uiThread.Send(delegate (object state) {
         VoidButton.Enabled = false;
         // shortbut to refresh UI
         OrderPaymentsView.SelectedItems[0].SubItems[0].Text = POSPayment.Status.VOIDED.ToString();
     }, null);
 }
コード例 #7
0
 public void OnVoidPaymentResponse(VoidPaymentResponse response)
 {
     OnVoidPaymentResponseMessage voidPaymentResponse = new OnVoidPaymentResponseMessage();
     voidPaymentResponse.payload = response;
     WebSocket.Send(Serialize(voidPaymentResponse));
 }