protected void ShowPaymentView() { if (this.PaymentMethodView != null) { if (IsTwoCheckoutPayment()) { this.TwoCheckoutPaymentView.Show(); return; } else if (IsWorldPayPayment()) { this.WorldPayPaymentView.Show(); return; } else if (IsFirstPay) { FirstPayPaymentForm.gateway = ActiveGateway; FirstPayPaymentForm.thisCustomer = Vortx.OnePageCheckout.Models.Adnsf9200.AdnsfUtility.ContextCustomer; FirstPayPaymentForm.Show(); FirstPayPaymentForm.Initialize(); return; } this.PaymentMethodView.Show(); } }
public void Show() { this.Visible = true; this.PanelBillSame.Visible = ((CreditCardPaymentModel)this.PaymentMethodModel).ShippingEnabled; this.UpdatePanelCreditCardAndBillingAddress.Visible = true; this.ToggleShowBillSameAsShip(BillSameYes.Checked); if (IsFirstPay) { FirstPayPaymentForm.gateway = ActiveGateway; FirstPayPaymentForm.thisCustomer = Vortx.OnePageCheckout.Models.Adnsf9200.AdnsfUtility.ContextCustomer; FirstPayPaymentForm.Show(); FirstPayPaymentForm.Initialize(); } else { this.CreditCardPaymentForm1.Show(); } }