[英]How to access browser's network headers data after getting redirected from payment gateway to my order confirmation page
I am working on payment gateway integration and my web site is on rails framework . 我正在从事支付网关集成,并且我的网站位于Rails框架上。 My problem is , when i am getting redirected to my payment confirmation page , there is some response coming with my giving callback url and that response has some vital information like payment is successful or not etc.
我的问题是,当我重定向到我的付款确认页面时,我的回叫网址出现了一些响应,并且该响应包含一些重要信息,如付款成功与否等。
This network response i can see in chrome network header tab [under developer option (press f12)] 我可以在Chrome网络标题标签中看到此网络响应[在开发人员选项下(按f12键)]
IMAGE -i have given link of image that shows - chrome's network tab that contains headers for order115 under that formdata is available that i need to fetch for payment confirmation IMAGE -i已给出显示图像的链接-chrome的网络选项卡包含该formdata下的order115的标头,我需要提取该数据以进行付款确认
please look into the image for better understanding
请调查图片以更好地了解
is there any way to get this response in my rails App ? 有什么办法可以在我的Rails App中获得此响应? i have tried with request.headers that does not contain this info .
我尝试使用不包含此信息的request.headers。
thanks in advance ! 提前致谢 !
为您的付款确认页面编写一个控制器操作,您可以在其中使用params
哈希访问此响应数据,并在处理params
该数据后呈现订单确认页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.