【发布时间】:2015-06-13 15:37:31
【问题描述】:
我正在使用 paytab 的 API。 (paytab 是一种支付网关方式 api)。 付款后,它将返回到我的操作结果 TheReturnPage()。在那里,我需要获取 paytab 使用 POST 方法发送的 payement_refrence 属性。 在 asp.net 两层我这样做并为我工作
public partial class TheReturnPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
HttpContext c = HttpContext.Current;
if (c.Request["payment_reference"] != null)
{
string paymentReference = c.Request["payment_reference"].ToString();
if (VerifyPayment(paymentReference))
{
//Payment is verified and logging out from payment process
if (LogoutPayment())
{
TextBox1.Text = "Payment is verified and logged out successfuly";
如何在 MVC 中做同样的事情? 您可以在此处找到 paytab 手册。 https://www.paytabs.com/PayTabs-API%20Documentation.pdf
【问题讨论】:
标签: asp.net asp.net-mvc asp.net-mvc-3