Пример #1
0
        protected void btnConfirm_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtOTP.Text) && txtOTP.Text.Length == 6)
            {
                if (ValidatePinEvent != null)
                {
                    ValidatePinEventArgs arg = new ValidatePinEventArgs();
                    arg.MobilePin = txtOTP.Text;
                    ValidatePinEvent(this, arg);
                }

                txtOTP.Text = "";
            }
            else
            {
                lblErrorMessage.Visible = true;
                OneTimePinPopupExtender.Show();
            }
        }
Пример #2
0
        public void RequestPin(string orderNumber, Order_V01 order, MyHLShoppingCart shoppingCart)
        {
            Token = "";
            var quickPayProvider     = new CN_99BillQuickPayProvider();
            var isMobilePinRequested = quickPayProvider.RequestMobilePinForPurchase(orderNumber, order, shoppingCart);

            if (isMobilePinRequested)
            {
                Token = quickPayProvider.Token;
                OneTimePinPopupExtender.Show();
            }
            else
            {
                if (!String.IsNullOrEmpty(quickPayProvider.LastErrorMessage))
                {
                    LastErrorMessage = quickPayProvider.LastErrorMessage;
                }
            }
        }