public virtual void OnVoidPaymentResponse(VoidPaymentResponse response) { }
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; }
public void OnVoidPaymentResponse(VoidPaymentResponse response) { Send("/VoidPaymentResponse", Serialize(response)); }
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); }
public void OnVoidPaymentResponse(VoidPaymentResponse response) { }
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); }
public void OnVoidPaymentResponse(VoidPaymentResponse response) { OnVoidPaymentResponseMessage voidPaymentResponse = new OnVoidPaymentResponseMessage(); voidPaymentResponse.payload = response; WebSocket.Send(Serialize(voidPaymentResponse)); }