File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments