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???
Solved! Go to Solution.
โ07-03-2014 06:02 AM
That how the relay response works.
Read it here
you can either use absolute path on your relay url page or use javascript redirect on your relay url page to your site.
โ07-03-2014 06:28 AM
That how the relay response works.
Read it here
you can either use absolute path on your relay url page or use javascript redirect on your relay url page to your site.
โ07-03-2014 06:28 AM
i have tried that already it doesnt redirect on any other url it sticks to 'https://secure.authorize.net/gateway/transact.dll ' only
โ07-03-2014 06:33 AM
can you post your redirect code?
โ07-03-2014 06:51 AM
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"]) });
}
โ07-03-2014 10:25 PM
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 :(
โ07-04-2014 12:03 AM
Thanks JavaScript Url Redirect Worked for me :)
โ07-04-2014 03:13 AM
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.
โ09-26-2014 09:13 AM
Sorry the working URL is http://meals42.abstracttechnology.com - same as the SDK.
โ09-26-2014 09:16 AM
getting a 404 on
iat.rr.perfectchannel.com/RRAuction/payment/relayresponse
โ09-26-2014 10:58 AM