Click here to Skip to main content
15,889,266 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWeb services Pin
Imthu10-Jul-07 2:26
Imthu10-Jul-07 2:26 
AnswerRe: Web services Pin
Christian Graus10-Jul-07 2:35
protectorChristian Graus10-Jul-07 2:35 
GeneralRe: Web services Pin
Imthu10-Jul-07 2:47
Imthu10-Jul-07 2:47 
GeneralRe: Web services Pin
Sathesh Sakthivel10-Jul-07 2:55
Sathesh Sakthivel10-Jul-07 2:55 
GeneralRe: Web services Pin
Christian Graus10-Jul-07 5:14
protectorChristian Graus10-Jul-07 5:14 
QuestionRouting using web page Pin
moon_stick10-Jul-07 1:35
moon_stick10-Jul-07 1:35 
AnswerRe: Routing using web page Pin
Christian Graus10-Jul-07 2:39
protectorChristian Graus10-Jul-07 2:39 
QuestionHow can i get Transaction Key on Authorize.net Pin
mangrovecm10-Jul-07 0:53
mangrovecm10-Jul-07 0:53 
Dear Experts,
I am integrate Payment of Authorize.net into my shopping cart.

I have a code lines:

string url = "https://certification.authorize.net/gateway/transact.dll";
StringBuilder strBuilder = new StringBuilder();
strBuilder.Append("x_login=" + login_ID + "&");//I have already login_ID
strBuilder.Append("x_tran_key=Tran_Key&"); //I don't know
strBuilder.Append("x_method=CC&");
strBuilder.Append("x_type=AUTH_CAPTURE&");
strBuilder.Append("x_amount=1.00&");
strBuilder.Append("x_delim_data=true&");
strBuilder.Append("x_delim_char=|&");
strBuilder.Append("x_relay_response=false&");
strBuilder.Append("x_card_num=" + card_num +"&");
strBuilder.Append("x_exp_date=092008&");
strBuilder.Append("x_test_request=true&");
strBuilder.Append("x_version=3.1");

string strPost = strBuilder.ToString();
StreamWriter myWriter = null;

HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url);
objRequest.Method = "POST";
objRequest.ContentLength = strPost.Length;
objRequest.ContentType = "application/x-www-form-urlencoded";

try
{
myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(strPost);
}
catch (Exception e)
{
return e.Message;
}
finally
{
myWriter.Close();
}

HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();
using (StreamReader sr = new StreamReader(objResponse.GetResponseStream()))
{
result = sr.ReadToEnd();
// Close and clean up the StreamReader
sr.Close();
}
return result;


All requests are failed because i have not know x_tran_key (Transaction Key).
How can i get the Transaction Key?

Thank in advance,

Kiet

vtkiet05
AnswerRe: How can i get Transaction Key on Authorize.net Pin
N a v a n e e t h10-Jul-07 1:03
N a v a n e e t h10-Jul-07 1:03 
GeneralRe: How can i get Transaction Key on Authorize.net Pin
mangrovecm10-Jul-07 1:55
mangrovecm10-Jul-07 1:55 
AnswerRe: How can i get Transaction Key on Authorize.net Pin
Christian Graus10-Jul-07 2:36
protectorChristian Graus10-Jul-07 2:36 
QuestionGridview to Excel Error Pin
Gamzun10-Jul-07 0:52
Gamzun10-Jul-07 0:52 
Question.swf file Pin
.NET- India 10-Jul-07 0:25
.NET- India 10-Jul-07 0:25 
AnswerRe: .swf file Pin
N a v a n e e t h10-Jul-07 1:06
N a v a n e e t h10-Jul-07 1:06 
QuestionCoding Pin
velud10-Jul-07 0:18
velud10-Jul-07 0:18 
AnswerRe: Coding Pin
N a v a n e e t h10-Jul-07 0:29
N a v a n e e t h10-Jul-07 0:29 
AnswerRe: Coding Pin
Pete O'Hanlon10-Jul-07 1:31
mvePete O'Hanlon10-Jul-07 1:31 
GeneralRe: Coding Pin
Christian Graus10-Jul-07 1:32
protectorChristian Graus10-Jul-07 1:32 
GeneralRe: Coding Pin
Pete O'Hanlon10-Jul-07 1:52
mvePete O'Hanlon10-Jul-07 1:52 
AnswerRe: Coding Pin
Christian Graus10-Jul-07 1:31
protectorChristian Graus10-Jul-07 1:31 
QuestionEvents from a custom control Pin
Senseicads10-Jul-07 0:08
Senseicads10-Jul-07 0:08 
AnswerRe: Events from a custom control Pin
Christian Graus10-Jul-07 1:33
protectorChristian Graus10-Jul-07 1:33 
GeneralRe: Events from a custom control Pin
Senseicads10-Jul-07 2:12
Senseicads10-Jul-07 2:12 
Questionhow to convert a .resx file to a dll programatically Pin
Prajin9-Jul-07 23:50
Prajin9-Jul-07 23:50 
AnswerRe: how to convert a .resx file to a dll programatically Pin
Sathesh Sakthivel10-Jul-07 2:53
Sathesh Sakthivel10-Jul-07 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.