protected void Page_Load(object sender, System.EventArgs e) { Response.CacheControl = "private"; Response.Expires = 0; Response.AddHeader("pragma", "no-cache"); Customer ThisCustomer = Context.GetCustomer(); pnlOrderNumberInput.Visible = false; pnlSubscriptionIdInput.Visible = false; pnlResults.Visible = false; if (!ThisCustomer.IsAdminUser) // safety check { ctrlAlertMessage.PushAlertMessage("PERMISSION DENIED", AlertMessage.AlertType.Error); } else { String RecurringSubscriptionID = CommonLogic.QueryStringCanBeDangerousContent("RecurringSubscriptionID"); int OriginalRecurringOrderNumber = CommonLogic.QueryStringUSInt("OriginalRecurringOrderNumber"); if (RecurringSubscriptionID.Length == 0 && OriginalRecurringOrderNumber > 0) { RecurringSubscriptionID = AppLogic.GetRecurringSubscriptionIDFromOrder(OriginalRecurringOrderNumber); } if (OriginalRecurringOrderNumber == 0 && RecurringSubscriptionID.Length != 0) { OriginalRecurringOrderNumber = AppLogic.GetOriginalRecurringOrderNumberFromSubscriptionID(RecurringSubscriptionID); } if (OriginalRecurringOrderNumber == 0 || RecurringSubscriptionID.Length == 0) { ctrlAlertMessage.PushAlertMessage("Need Original Order Number or Subscription ID", AlertMessage.AlertType.Error); pnlOrderNumberInput.Visible = true; pnlSubscriptionIdInput.Visible = true; } else if (OriginalRecurringOrderNumber > 0 && RecurringSubscriptionID.Length == 0) { ctrlAlertMessage.PushAlertMessage("Subscription ID was not found for Order Number", AlertMessage.AlertType.Error); pnlOrderNumberInput.Visible = true; pnlSubscriptionIdInput.Visible = true; } else { pnlResults.Visible = true; String GW = AppLogic.ActivePaymentGatewayCleaned(); if (GW == Gateway.ro_GWPAYFLOWPRO) { txtResults.Text = PayFlowProController.RecurringBillingInquiryDisplay(RecurringSubscriptionID); } else { ctrlAlertMessage.PushAlertMessage("Gateway " + GW + " not supported.", AlertMessage.AlertType.Error); } } } Page.Form.DefaultFocus = txtOrderNumber.ClientID; }
protected void Page_Load(object sender, System.EventArgs e) { Response.CacheControl = "private"; Response.Expires = 0; Response.AddHeader("pragma", "no-cache"); SectionTitle = "Recurring Subscription Gateway Details"; Customer ThisCustomer = ((AspDotNetStorefrontPrincipal)Context.User).ThisCustomer; pnlInput1.Visible = false; pnlInput2.Visible = false; pnlResults.Visible = false; if (!ThisCustomer.IsAdminUser) // safety check { ltError.Text = "<b><font color=red>PERMISSION DENIED</b></font>"; } else { String RecurringSubscriptionID = CommonLogic.QueryStringCanBeDangerousContent("RecurringSubscriptionID"); int OriginalRecurringOrderNumber = CommonLogic.QueryStringUSInt("OriginalRecurringOrderNumber"); if (RecurringSubscriptionID.Length == 0 && OriginalRecurringOrderNumber > 0) { RecurringSubscriptionID = AppLogic.GetRecurringSubscriptionIDFromOrder(OriginalRecurringOrderNumber); } if (OriginalRecurringOrderNumber == 0 && RecurringSubscriptionID.Length != 0) { OriginalRecurringOrderNumber = AppLogic.GetOriginalRecurringOrderNumberFromSubscriptionID(RecurringSubscriptionID); } if (OriginalRecurringOrderNumber == 0 || RecurringSubscriptionID.Length == 0) { ltError.Text = "<b><font color=red>Need Original Order Number or Subscription ID</b></font>"; pnlInput1.Visible = true; pnlInput2.Visible = true; } else if (OriginalRecurringOrderNumber > 0 && RecurringSubscriptionID.Length == 0) { ltError.Text = "<b><font color=red>Subscription ID was not found for Order Number " + OriginalRecurringOrderNumber.ToString() + "</b></font>"; pnlInput1.Visible = true; pnlInput2.Visible = true; } else { pnlResults.Visible = true; String GW = AppLogic.ActivePaymentGatewayCleaned(); ltResults.Text = "<strong>Results from Gateway:</strong><br />"; if (GW == Gateway.ro_GWVERISIGN || GW == Gateway.ro_GWPAYFLOWPRO) { ltResults.Text += PayFlowProController.RecurringBillingInquiryDisplay(RecurringSubscriptionID); } else { ltError.Text = "<b><font color=red>Gateway " + GW + " not supported.</b></font>"; } } } Page.Form.DefaultFocus = txtOrderNumber.ClientID; }
protected void Page_Load(object sender, System.EventArgs e) { Response.CacheControl = "private"; Response.Expires = 0; Response.AddHeader("pragma", "no-cache"); /****************************************************************************/ // * WARNING TO DEVELOPERS // * The redirect below is a SAFETY feature. Removing the redirect will not // * enable ML-only features on a lower version of AspDotNetStorefront. // * Attempting to do so can very easily result in a partially implemented // * feature, invalid or incomplete data in your DB, and other serious // * conditions that will cause your store to be non-functional. // * // * If you break your store attempting to enable ML-only features in PRO or // * Standard, our staff cannot help you fix it, and it will also invalidate // * your AspDotNetStorefront License. /***************************************************************************/ if (!AppLogic.m_ProductIsML()) { Response.Redirect(AppLogic.AdminLinkUrl("restrictedfeature.aspx")); } SectionTitle = "Recurring Subscription Gateway Details"; Customer ThisCustomer = ((AspDotNetStorefrontPrincipal)Context.User).ThisCustomer; pnlInput1.Visible = false; pnlInput2.Visible = false; pnlResults.Visible = false; if (!ThisCustomer.IsAdminUser) // safety check { ltError.Text = "<b><font color=red>PERMISSION DENIED</b></font>"; } else { String RecurringSubscriptionID = CommonLogic.QueryStringCanBeDangerousContent("RecurringSubscriptionID"); int OriginalRecurringOrderNumber = CommonLogic.QueryStringUSInt("OriginalRecurringOrderNumber"); if (RecurringSubscriptionID.Length == 0 && OriginalRecurringOrderNumber > 0) { RecurringSubscriptionID = AppLogic.GetRecurringSubscriptionIDFromOrder(OriginalRecurringOrderNumber); } if (OriginalRecurringOrderNumber == 0 && RecurringSubscriptionID.Length != 0) { OriginalRecurringOrderNumber = AppLogic.GetOriginalRecurringOrderNumberFromSubscriptionID(RecurringSubscriptionID); } if (OriginalRecurringOrderNumber == 0 || RecurringSubscriptionID.Length == 0) { ltError.Text = "<b><font color=red>Need Original Order Number or Subscription ID</b></font>"; pnlInput1.Visible = true; pnlInput2.Visible = true; } else if (OriginalRecurringOrderNumber > 0 && RecurringSubscriptionID.Length == 0) { ltError.Text = "<b><font color=red>Subscription ID was not found for Order Number " + OriginalRecurringOrderNumber.ToString() + "</b></font>"; pnlInput1.Visible = true; pnlInput2.Visible = true; } else { pnlResults.Visible = true; String GW = AppLogic.ActivePaymentGatewayCleaned(); ltResults.Text = "<strong>Results from Gateway:</strong><br />"; if (GW == Gateway.ro_GWVERISIGN || GW == Gateway.ro_GWPAYFLOWPRO) { ltResults.Text += PayFlowProController.RecurringBillingInquiryDisplay(RecurringSubscriptionID); } else { ltError.Text = "<b><font color=red>Gateway " + GW + " not supported.</b></font>"; } } } Page.Form.DefaultFocus = txtOrderNumber.ClientID; }