如何在Realex HPP帖子中显示付款金额?

时间:2017-04-20 08:47:47

标签: realex-payments-api

我希望最终用户在输入信用卡详细信息时知道他们支付的金额,这似乎只能通过向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

1 个答案:

答案 0 :(得分:1)

感谢您的提问。您不需要模板来向持卡人显示金额。这可以在我们的报告和配置工具 - RealControl中实现。

管理下的导航菜单中选择客户端设置。在此屏幕上,您会看到一个名为重定向文本配置的部分。从下拉列表中,选择您要为其实现此帐户。

信息文本框中,您会看到配置要在HPP上显示的文字的选项。点击 i 符号查看您可以使用的各种交易变量,其中一个是&lt; #TOTAL#&gt;您可以使用它向持卡人显示金额。

最佳,

肖恩

Realex付款

相关问题