【问题标题】:PayTM gateway coming back to Callback URL without asking for paymentPayTM 网关在不要求付款的情况下返回回调 URL
【发布时间】:2019-04-26 07:55:12
【问题描述】:

我正在我的 ASP.NET MVC 网站上实施 PayTM Gateway。但在转到 PayTM 后,它不会要求付款,而是会自动重定向回回调 URL。 这是控制器生成的代码:

<!DOCTYPE html>
<html>
   <head>
      <title>Merchant Checkout Page</title>
   </head>
   <body>
      <center>
         <h1>Please do not refresh this page...</h1>
      </center>
      <form method='post' action='https://securegw.paytm.in/theia/processTransaction' name='f1'>
         <input type='hidden' name='MID' value='<MID>'>
         <input type='hidden' name='CHANNEL_ID' value='WEB'>
         <input type='hidden' name='WEBSITE' value='<WEBSITE>'>
         <input type='hidden' name='CALLBACK_URL' value='<callback>'>
         <input type='hidden' name='CUST_ID' value='1'>
         <input type='hidden' name='MOBILE_NO' value='7777777777'>
         <input type='hidden' name='EMAIL' value='abc@xyz.com'>
         <input type='hidden' name='ORDER_ID' value='31'>
         <input type='hidden' name='INDUSTRY_TYPE_ID' value='Retail'>
         <input type='hidden' name='TXN_AMOUNT' value='300.01'>
         <input type='hidden' name='CHECKSUMHASH' value='<checksum>'>
         <script type='text/javascript'>document.f1.submit();</script>
      </form>
   </body>
</html>

【问题讨论】:

    标签: c# .net asp.net-mvc paytm


    【解决方案1】:

    解决了。重定向到操作中的错误视图。当重定向到正确的视图时,它显示重复的订单 ID 和无效的交易金额。更正了它并且它起作用了。希望这对将来的某人有所帮助。

    【讨论】:

    • 你能分享你的 paytm 支付网关代码吗,我正在工作,但回调 url 有问题。不知道如何创建它,假设 xyz.com 是域,那么回调 url 可能是什么?
    • @Deven 这是一个有年头的问题。我不再从事这个项目了。但回调 url 可以是您域上接受 PayTm 响应格式数据的任何端点。更多细节可以在他们的文档中找到; developer.paytm.com/docs/callback-and-webhook
    猜你喜欢
    • 1970-01-01
    • 2014-02-27
    • 1970-01-01
    • 1970-01-01
    • 2012-11-12
    • 2012-03-09
    • 2016-09-07
    • 2021-06-27
    • 1970-01-01
    相关资源
    最近更新 更多