public string GetTimeRequest()
        {

            StringBuilder strXML = new StringBuilder();

            strXML.AppendLine("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
            strXML.AppendLine("<GetTimeRequest>");
            strXML.AppendLine("<Username>" + "" + "</Username>");
            strXML.AppendLine("</GetTimeRequest>");

            string RequestXML = strXML.ToString();

            XMLExchange XMLExchangeObj = new XMLExchange();
            XMLExchangeObj.url = "https://www.subscriptionbridge.com/Subscriptions/Service2.svc/GetTimeRequest";

            string strResponse = null;
            strResponse = XMLExchangeObj.sendXMLPOST(RequestXML);

            string strReturn = XMLExchangeObj.xEval(strResponse, "GetTimeResponse/CurrentTime");

            XMLExchangeObj = null;


            return strReturn;

        }
    protected void Button1_Click1(object sender, EventArgs e)
    {

        string strMerchantUsername = null;
        string strMerchantPassword = null;
        string strMerchantKey = null;

        strMerchantUsername = _User.Text;
        strMerchantPassword = _Pass.Text;
        strMerchantKey = _Key.Text;

        //// Hash the Token
        string strToken = Utilities.HashToken(strMerchantPassword, strMerchantKey);

        //// Form
        string strEmail = Email.Text;
        string strPassword = Password.Text;
        string strNewPassword = NewPassword.Text;


        AuthenticationAPI AuthenticationAPIObj = new AuthenticationAPI();
        string RequestXML = null;
        RequestXML = AuthenticationAPIObj.ModifyAccountCredentialsRequest(strMerchantUsername, strToken, strEmail, strPassword, strNewPassword);
        AuthenticationAPIObj = null;

        XMLExchange XMLExchangeObj = new XMLExchange();
        XMLExchangeObj.url = "https://www.subscriptionbridge.com/Authentication/Service5.svc/ModifyAccountCredentialsRequest";

        string strResponse = null;
        strResponse = XMLExchangeObj.sendXMLPOST(RequestXML);
        XMLExchangeObj = null;



        if (strResponse.IndexOf("Success") != -1)
        {
            
            // string strParam = null;
            // strParam = XMLExchangeObj.xEval(strResponse, "ModifyAccountCredentialsResponse/Ack");
            // Results.Text = strParam;

            Results.Text = strResponse;


        }
        else
        {
            Results.Text = strResponse;

        }


    }
    protected void Button1_Click1(object sender, EventArgs e)
    {

        string strMerchantUsername = null;
        string strMerchantPassword = null;
        string strMerchantKey = null;

        strMerchantUsername = _User.Text;
        strMerchantPassword = _Pass.Text;
        strMerchantKey = _Key.Text;

        //// Hash the Token
        string strToken = Utilities.HashToken(strMerchantPassword, strMerchantKey);

        //// Form
        string strGuid = Guid.Text;
        string strAmount = Amount.Text;
        string strMemo = Memo.Text;
        string strLinkID = LinkID.Text;


        ManagementAPI ManagementAPIObj = new ManagementAPI();
        string RequestXML = null;
        RequestXML = ManagementAPIObj.AddMeteredRequest(strMerchantUsername, strToken, strGuid, strAmount, strMemo, strLinkID);
        ManagementAPIObj = null;

        XMLExchange XMLExchangeObj = new XMLExchange();
        XMLExchangeObj.url = "https://www.subscriptionbridge.com/Management/Service3.svc/AddMeteredRequest";

        string strResponse = null;
        strResponse = XMLExchangeObj.sendXMLPOST(RequestXML);
        XMLExchangeObj = null;



        if (strResponse.IndexOf("Success") != -1)
        {
            //Dim strParam As String
            //strParam = XMLExchangeObj.xEval(strResponse, "AddMeteredResponse/Ack")
            //Results.Text = strParam

            Results.Text = strResponse;


        }
        else
        {
            Results.Text = strResponse;

        }


    }