Beispiel #1
0
        public void UpdatePaymentAccount(string account, string email, string pass, string bankA, string bankR)
        {
            string apiKey     = GetAPIKey();
            string merchantID = GetMerchantID();
            string name       = "UpdatePaymentAccount/";

            WalletUser wu = new WalletUser();

            wu.email       = email;
            wu.password    = pass;
            wu.bankAccount = bankA;
            wu.bankRouting = bankR;

            byte[] byteArray = serial.serializeObject(wu);

            string vars = wu + "/" + merchantID + "/" + apiKey;

            ProcessWebRequest(name, vars);
        }
Beispiel #2
0
        public int CreateWalletUser(string account, string email, string pass, string bankA, string bankR)
        {
            string apiKey     = GetAPIKey();
            string merchantID = GetMerchantID();
            string name       = "CreateVirtualWallet/";

            WalletUser wu = new WalletUser();

            wu.email       = email;
            wu.password    = pass;
            wu.bankAccount = bankA;
            wu.bankRouting = bankR;
            wu.amount      = 0;

            byte[] byteArray = serial.serializeObject(wu);

            string vars = byteArray + "/" + merchantID + "/" + apiKey;

            String data             = ProcessWebRequest(name, vars);
            JavaScriptSerializer js = new JavaScriptSerializer();

            return(js.Deserialize <int>(data));
        }