public IActionResult Index(DonateVM vm) { if (!ModelState.IsValid) { return(View(vm)); } var success = $"HttpPost success: {vm.Amount}. SecretKey: {stripeSettings.Value.SecretKey}"; //, SecretKeyPartial: {stripeSettings.Value.SecretKeyPartial} //return RedirectToAction(Navigation.Payments.Donate.Action); return(RedirectToAction(Navigation.Payments.Donate2.Action, new { amount = vm.Amount, msg = success })); }
public IActionResult Index() { var vm = new DonateVM(); return(View(vm)); }