简体   繁体   English

如何让用户使用 Node js 在 paytm 付款中输入应付金额

[英]How to let user enter payable amount in paytm payment using Node js

I am trying to make a payment portal using the paytm api.Through paytm's documentation i am able to do that but in that the params: 'transaction_amount' is being hardcoded.I was wondering how to get varying amounts form different users and pass the user's amount to the param 'transaction_amount'.我正在尝试使用 paytm api 制作一个支付门户。通过 paytm 的文档,我能够做到这一点,但是参数:'transaction_amount' 正在被硬编码。我想知道如何从不同的用户获得不同的金额并传递用户的金额为参数“transaction_amount”。 I can get the amount through FORM from user with method="POST" but the paytm payment route is a "GET" route so even if my FORM goes to route action='/paytm' which is also my "GET" route for paytm payment it would'nt work.我可以使用 method="POST" 通过 FORM 从用户那里获取金额,但 paytm 付款路线是“GET”路线,因此即使我的 FORM 转到路线 action='/paytm' 这也是我的 paytm 的“GET”路线付款是行不通的。 Detailed help would be appreciated.详细的帮助将不胜感激。

The parameter transaction_amount is not hard coded in any of the paytm APIs.参数 transaction_amount 没有硬编码在任何 paytm API 中。 It's just an example given in all the relevant API signatures.这只是所有相关 API 签名中给出的示例。 Kindly pass the amount as required through a variable for this parameter.请通过此参数的变量传递所需的金额。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM