private void LoadSubscriptionInformation() { var billingManager = new MerchantTribe.Commerce.Accounts.Billing.BillingManager(this.MTApp); string customerId = this.MTApp.CurrentStore.StripeCustomerId; if (customerId.Trim().Length < 1) { this.pnlBilling.Visible = false; this.litStores.Text = "Your store is on the free trial plan. No paid subscription is currently active for this store.<br />"; this.litStores.Text += " <br />"; this.litStores.Text += "If you would like to cancel your store completely: <a href=\"CancelStore.aspx\">View Cancel Options<br />"; this.litStores.Text += " <br />"; this.litStores.Text += "<a href=\"ChangePlan.aspx\">Click Here to Upgrade to a Paid Plan</a> to get support, more products and more features."; } else { this.pnlBilling.Visible = true; var customer = billingManager.GetCustomerInformation(customerId); if (customer.Success) { this.litStores.Text = customer.Description + "<br />"; this.litStores.Text += "<b>Email:</b> " + customer.Email + "<br />"; if (customer.HasCard) { this.litStores.Text += "<b>Card:</b> Credit Card is On File<br />"; } else { this.litStores.Text += "<b>Card:</b> ERROR - No active card on file<br />"; } this.litStores.Text += "<b>Plan:</b> " + customer.PlanName + " (" + customer.PlanAmount.ToString("C") + " per month)<br />"; //this.litStores.Text += "<b>Next Charge:</b> " + customer.NextCharge + "<br />"; this.litStores.Text += "<b>Plan Status:</b> " + customer.PlanStatus + "<br />"; this.litStores.Text += " <br />"; this.litStores.Text += "If you would like to cancel your store completely: <a href=\"CancelStore.aspx\">View Cancel Options<br />"; this.litStores.Text += " <br />"; this.litStores.Text += "<a href=\"ChangePlan.aspx\">Click Here to Upgrade or Downgrade your Paid Plan</a> to change, product limits and features.<br />"; } else { this.litStores.Text = "Unable to locate your subscription. Check with support for more information."; } } }