Skip to content

Commit 47ce143

Browse files
committed
Added back a helper method that was lost after initial refactor
1 parent bb0d64e commit 47ce143

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Authorize.NET/Util/HtmlHelper.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
using System.Text;
3+
4+
namespace AuthorizeNet.Util
5+
{
6+
class HtmlHelper
7+
{
8+
/// <summary>
9+
/// This will issue a full HTML document with a built-in script, which will redirect the browser away from
10+
/// Authorize.NET to the URL you pass in. Be sure the toURL is absolute. This can be used in your DPM Replay Response Endpoint
11+
/// </summary>
12+
/// <param name="toUrl"></param>
13+
/// <returns></returns>
14+
public static string RelayResponseRedirecter(string toUrl) {
15+
16+
return string.Format("<html><head><script type='text/javascript' charset='utf-8'> window.location='{0}';</script><noscript><meta http-equiv='refresh' content='1;url={0}'></noscript></head><body></body></html>", toUrl);
17+
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)