示例#1
0
        private void PaymentByFleetTenderCardSwiped(CardSwipeInformation cardSwipeInformation)
        {
            _cardSwipeInformation = cardSwipeInformation;
            _inputPinNumber       = _cardSwipeInformation.Pin;

            PerformKickBack();
        }
示例#2
0
 private void ShowPrivateRestrictionsForAccount(CardSwipeInformation cardInfo)
 {
     ResetVM();
     _swipedCardNumber     = cardInfo?.CardNumber;
     _cardSwipeInformation = cardInfo;
     _processForAmount     = true;
     _inputPinNumber       = _cardSwipeInformation.Pin;
     AskForPin(_cardSwipeInformation.Pin, true);
 }
示例#3
0
 private void SetSwipedCardDetails(CardSwipeInformation cardDetails)
 {
     Number              = cardDetails.CardNumber;
     _outStandingAmount  = cardDetails.Amount;
     IsCardNumberEnabled = false;
     _isSwipedFromCard   = true;
     _cardPinData        = cardDetails.Pin;
     AskPin              = cardDetails.AskPin;
 }
示例#4
0
        private async Task CompleteFleetPayment()
        {
            if (!string.IsNullOrEmpty(CardNumber))
            {
                _cardSwipeInformation = await _checkoutBusinessLogic.GetCardInformation(
                    Helper.EncodeToBase64(CardNumber), _transactionType);

                _inputPinNumber = _cardSwipeInformation.Pin;
                AskForPin(_cardSwipeInformation.Pin);
            }
            else
            {
                PaymentByCard();
            }
        }
示例#5
0
 private void PaymentByCard()
 {
     PerformAction(async() =>
     {
         try
         {
             var tenderSummary = new TenderSummary();
             if (!string.IsNullOrEmpty(_swipedCardNumber))
             {
                 tenderSummary = await _checkoutBusinessLogic.
                                 PaymentByCard(_tenderCode, Amount, _transactionType,
                                               Helper.EncodeToBase64(_swipedCardNumber), _poNumber);
             }
             else if (_cardSwipeInformation != null)
             {
                 tenderSummary = await _checkoutBusinessLogic.
                                 PaymentByCard(_tenderCode, Amount, _transactionType,
                                               Helper.EncodeToBase64(CardNumber), _poNumber);
                 _cardSwipeInformation = null;
             }
             else
             {
                 tenderSummary = await _checkoutBusinessLogic.UpdateTender(_tenderCode, null, _transactionType);
             }
             _swipedCardNumber = string.Empty;
             NavigateToTender();
             MessengerInstance.Send(tenderSummary, "UpdateTenderSummary");
         }
         finally
         {
             _timer.Stop();
             Log.Info(string.Format("Time taken in saving profile prompt and payment by card call is {0}ms ",
                                    _timer.ElapsedMilliseconds));
         }
     });
 }