cancel
Showing results for 
Search instead for 
Did you mean: 

Send Session data to Relay Response page

Hello. I am using Visual Studio, aspx, and C#. I want to send 3 strings of data from my payment page (using DPM) to my Relay Response page.

 

Typically I could do something like the following...

 

Payment Page:

 

Session["EventCode"] = EventCode.Text;

Relay Response page:

string eventCode = Session["EventCode"]; 

 

However it doesn't work as the page displays https://secure2.authorize.net/gateway/transact.dll . Please advise on how I can send a string of data between my payment page to my relay response page.

rockon77
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

You can't use session data. as the relay response will be a different session.

If it just simple text pass it as merchant defined fields.

https://support.authorize.net/authkb/index?page=content&id=A135

 

 

View solution in original post

RaynorC1emen7
Expert
3 REPLIES 3

You can't use session data. as the relay response will be a different session.

If it just simple text pass it as merchant defined fields.

https://support.authorize.net/authkb/index?page=content&id=A135

 

 

RaynorC1emen7
Expert

Yes perfect! Thank you. I didn't know this was an option.

I got it working. 

 

Payment page has:

 

<input type='hidden' name='x_event_code' value="TestEventCodeHere" />

Relay Response page has: 

 

 string eventCode = Request.Form["x_event_code"];

Works like a charm.

rockon77
Contributor