When I try to run this, I get the following error in the console. I made a new console application in visual studio, copied this code, and replaced the username and password with the correct credentials. StreamReader rs = new StreamReader(rep.GetResponseStream(), enc) HttpWebResponse rep = (HttpWebResponse) req.GetResponse() Įncoding enc = (1252) Req.ContentType = "application/x-www-form-urlencoded" "&password=" + HttpUtility.UrlEncode(password) īyte buf = (1252).GetBytes(post_data) String post_data = "custid=" + HttpUtility.UrlEncode(custid) + HttpWebRequest req = (HttpWebRequest) WebRequest.Create(gateway_post_address) * An example class for generating a TrustCommerce Trustee Token I was given an example on how to retrieve this token by their dev team. I'm working with a Trust Commerce Tutorial on how to generate a payment token that will allow customers to use the TC Trustee Host payment form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |