cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

SIM x_relay_url not redirecting

Everything working fine when i send data to authoriz.net it goes to payment page and then when i enter credit card number and expiry date it does redirect to my page but the url will be https://secure.authorize.net/gateway/transact.dll 

due to this my page's images and css are not being displayed properly

the url should be the url which i passed in x_relay_url but

it is that url on which i posted data ->>>>https://secure.authorize.net/gateway/transact.dll 

can anyone help me over this???

Himan
Member
1 ACCEPTED SOLUTION

Accepted Solutions

That how the relay response works.

Read it here

http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Relay-Response-Basics-a...

 

you can either use absolute path on your relay url page or use javascript redirect on your relay url page to your site.

View solution in original post

RaynorC1emen7
Expert
15 REPLIES 15

That how the relay response works.

Read it here

http://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Relay-Response-Basics-a...

 

you can either use absolute path on your relay url page or use javascript redirect on your relay url page to your site.

RaynorC1emen7
Expert

i have tried that already it doesnt redirect on any other url it sticks to 'https://secure.authorize.net/gateway/transact.dll ' only

can you post your redirect code?

it execute everything my order status is also changed to success but it won't redirect to action OrderSuccess 

if (Request.Form["x_response_code"] == "1")
{
return RedirectToAction("OrderSuccess", new { OrderId = Convert.ToInt32(Request.Form["x_invoice_num"]), Res = Convert.ToInt32(Request.Form["x_response_code"]) });

}

it allows redirection on server side i tried it with javascript then it won't  allow redirection.

this is server side code which redirects but url will be this 'https://secure.authorize.net/gateway/transact.dll 


if (Request.Form["x_response_code"] == "1")
{
return RedirectToAction("OrderSuccess", new { OrderId = Convert.ToInt32(Request.Form["x_invoice_num"]), Res = Convert.ToInt32(Request.Form["x_response_code"]) });

}

 

then i thought let me try javascript redirection with below code

<input type="hidden" id="OrderResponse" name="OrderResponse" value="<%:ViewBag.OrderResponse %>" />
<input type="hidden" id="OrderId" name="OrderId" value="<%:ViewBag.OrderId %>" />
<script type="text/javascript">
var ordid = document.getElementById('OrderId');
var res = document.getElementById('OrderResponse');

if (res == 1) {
window.location.href = 'http://www.mydomain.com/OrderSuccess';
}

</script>

 

in first case it is executing properly but not visible properly

in 2nd case it wont redirect at all


i am stuck :(

Thanks JavaScript Url Redirect Worked for me :)

I have the same issue, if I set the replay URL to public URL http://iat.rr.perfectchannel.com/RRAuction/payment/relayresponse, it reported issue, but if I use another URL: http://imeals42.abstracttechnology.com/Response.aspx, then it works.

 

In the blob, they mentioned about DNS & timeout issue, how can I check what cause the reply URL failed.

 

Please help.

Sm4rtv1ew
Member

Sorry the working URL is http://meals42.abstracttechnology.com - same as the SDK.

getting a 404 on

iat.rr.perfectchannel.com/RRAuction/payment/relayresponse