Exemplo n.º 1
0
        public async Task <IActionResult> UpgradeAccount(UpgradeAccountViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            string userId = _accountService.GetUserId(User);

            var user = await _accountService.GetUserByUserIdAsync(userId);

            decimal total = model.Price;

            return(MoMoCheckout(total.ToString(G29), user.FullName, user.Email));
        }
 public GetPricingRequestListener(AccountDetailsViewModel accountDetails, UpgradeAccountViewModel upgradeAccount)
 {
     _accountDetails = accountDetails;
     _upgradeAccount = upgradeAccount;
 }
 public GetPaymentMethodsRequestListener(UpgradeAccountViewModel upgradeAccount)
 {
     _upgradeAccount = upgradeAccount;
 }