예제 #1
0
        async void NextButtonTapped_Tapped(object sender, EventArgs e)
        {
            if (StripePayment())
            {
                ShoferAppST shoferBooking = ShoferAppST.Instance();
                shoferBooking.Booking.PaymentType  = selectedPaymentType.ToLower() == "shofarwallet" ? "wallet" : "Card";
                shoferBooking.Booking.CardNumber   = txtCardNumber.Text;
                shoferBooking.Booking.NameOnCard   = txtNameOnCard.Text;
                shoferBooking.Booking.ExpiryMointh = txtMonth.Text;
                shoferBooking.Booking.ExpiryYear   = txtYear.Text;
                shoferBooking.Booking.CVV          = txtCVV.Text;

                IsLoading = true;
                // do booking
                WebConnection service = new WebConnection();
                service.On_ResponseRecived += Service_On_ResponseRecived;
                await service.DoBooking(shoferBooking.Booking);
            }

            //await Navigation.PushAsync(new FullBookingInformation());
        }