Object passed in to OnCapturePreAuthResponse
Inheritance: BaseResponse
Example #1
0
 public void OnCapturePreAuthResponse(CapturePreAuthResponse response)
 {
     throw new NotImplementedException();
 }
Example #2
0
 public virtual void OnCapturePreAuthResponse(CapturePreAuthResponse response)
 {
 }
 public void OnCapturePreAuthResponse(CapturePreAuthResponse response)
 {
     Send("/CapturePreAuthResponse", Serialize(response));
 }
        public void OnCapturePreAuthResponse(CapturePreAuthResponse response)
        {
            if (response.Success)
            {
                foreach (POSPayment preAuth in Store.PreAuths)
                {
                    if (preAuth.PaymentID.Equals(response.PaymentId))
                    {
                        uiThread.Send(delegate (object state) {
                            Store.CurrentOrder.Status = POSOrder.OrderStatus.AUTHORIZED;
                            preAuth.PaymentStatus = POSPayment.Status.AUTHORIZED;
                            preAuth.Amount = response.Amount;
                            preAuth.TipAmount = response.TipAmount;
                            Store.CurrentOrder.AddOrderPayment(preAuth);

                            NewOrder();
                            Store.RemovePreAuth(preAuth);
                            AlertForm.Show(this, "Payment Captured", "Payment was successfully captured using Pre-Authorization");
                        }, null);
                        break;
                    }
                }
            }
            else
            {
                uiThread.Send(delegate (object state) {
                    AlertForm.Show(this, response.Reason, response.Message);
                }, null);

            }
        }
 public void OnCapturePreAuthResponse(CapturePreAuthResponse response)
 {
 }
 public void OnCapturePreAuthResponse(CapturePreAuthResponse response)
 {
     OnCapturePreAuthResponseMessage authCaptureResponse = new OnCapturePreAuthResponseMessage();
     authCaptureResponse.payload = response;
     WebSocket.Send(Serialize(authCaptureResponse));
 }