我希望最终用户在输入信用卡详细信息时知道他们支付的金额,这似乎只能通过向 Realex 提供带有<hpp:body />
嵌入标签的模板文件来实现。我宁愿不必进入,那么有没有办法让标准 Realex 表格显示收费金额?
我的应用程序在 ASP VB.net 中。我构建帖子的课程是:
Public Class RemotePost
Private Inputs As System.Collections.Specialized.NameValueCollection = New System.Collections.Specialized.NameValueCollection()
Public Url As String = ""
Public Method As String = "post"
Public FormName As String = "Mypost"
Public Sub Add(name As String, value As String)
Inputs.Add(name, value)
End Sub
Public Sub Post()
System.Web.HttpContext.Current.Response.Clear()
System.Web.HttpContext.Current.Response.Write("<html><head>")
System.Web.HttpContext.Current.Response.Write(String.Format("</head><body onload='document.{0}.submit()'>", FormName))
System.Web.HttpContext.Current.Response.Write(String.Format("<form name='{0}' method='{1}' action='{2}' >", FormName, Method, Url))
For i = 0 To Inputs.Keys.Count - 1
HttpContext.Current.Response.Write(String.Format("<input name='{0}' type='hidden' value='{1}'>", Inputs.Keys(i), Inputs(Inputs.Keys(i))))
Next i
System.Web.HttpContext.Current.Response.Write("</form>")
System.Web.HttpContext.Current.Response.Write("</body></html>")
System.Web.HttpContext.Current.Response.End()
End Sub
End Class