protected void btnContinue_Click(object sender, EventArgs e) { if (!IsValid) { var tbCardNumber = BillingInfoWidget.FindControl("tbCardNumber") as TextBox; if (tbCardNumber != null) { tbCardNumber.Text = string.Empty; } return; } var payment = BillingInfoWidget.GetPaymentInfo(); targetPayment.PaymentMethod = payment.PaymentMethod; // MSIV-330 targetPayment.Total = targetPayment.LineItems.Sum(x => x.Total); processPayment(payment); MultiStepWizards.MakePayment.Clear(); // Clear any cached Membership checks since a payment could trigger a Membership Update. MembershipLogic.ClearMemberCaches(); QueueBannerMessage(string.Format("Your payment for {0:C} has been processed.", targetPayment.Total)); GoHome(); }
protected void ClearAndRedirect() { MultiStepWizards.RenewMembership.Clear(); // Clear any cached Membership checks since a Membership Order has just processed. MembershipLogic.ClearMemberCaches(); GoTo(string.Format("~/orders/OrderComplete.aspx?contextID={0}", OrderId)); }