private async void _GetBillerItems() { var pd = await ProgressDialog.Show("Getting Products. Please Wait..."); var billerItems = new BillerItemPost(); billerItems.ItemID = SelectedBiller; products = await BillerServices.GetBillerProducts(billerItems); SetProductNames(); await pd.Dismiss(); }
private async void GetBillers() { var pd = await ProgressDialog.Show("Getting Billers. Please Wait..."); var biller = new BillerPost(); biller.billerId = categoryId; BillerList = await BillerServices.GetBillerBillersByCategory(biller); SetBillerNames(); await pd.Dismiss(); }
private async Task RefreshCategories() { BillerCategories = await BillerServices.GetBillerCategories(); if (BillerCategories != null && BillerCategories.Count > 0) { BillerCategoryName = new List <string>(); foreach (var item in BillerCategories) { BillerCategoryName.Add(item.Name); } Category.ItemsSource = BillerCategoryName; } }
public async void DoBillsPaymentTransaction() { var pd = await ProgressDialog.Show("Sending Request. Please Wait..."); var accSplitted = Utilities.SplitBeneficiaryDetailsByTab(DebitAccount.SelectedItem.Trim()); string AcctToDebit = accSplitted[0]; // totalAmount = (Convert.ToDouble(SelectedProductAmount) + Convert.ToDouble(Subcharge)); string amt = totalAmount.ToString("##"); var payBills = new PayBillerPost { ActionType = "", Referenceid = Utilities.GenerateReferenceId(), RequestType = "108", SubscriberInfo1 = BillerLabel.Text, Translocation = GlobalStaticFields.GetUserLocation, amt = amt, email = GlobalStaticFields.Customer.Email, mobile = GlobalStaticFields.Customer.PhoneNumber, nuban = AcctToDebit.Trim(), paymentcode = SelectedPaymentCode }; var response = await BillerServices.PayBiller(payBills); await pd.Dismiss(); if (string.Equals(response.message, "Not successful", StringComparison.OrdinalIgnoreCase)) { MessageDialog.Show("ERROR", $"Sorry we are unable to process your request at the moment. Kindly try again later", DialogType.Error, "DISMISS", null); return; } else { MessageDialog.Show("SUCCESS", $"BILLS PAYMENT FOR {BillerProduct.SelectedItem} WAS SUCCESSFUL", DialogType.Success, "DISMISS", null); SaveBillPayment(); } }
private async void GetPaymentCategories() { await Task.Run(() => BillerServices.GetBillerCategories()); }