在网络选项卡中的标题中读取表单数据

时间:2016-09-20 09:51:18

标签: angularjs payment-gateway

我们正在使用AngularJs与PaymentGateway集成。如果成功/失败,则会从PG重定向成功或失败URL。但是在成功/失败URL中,他们发布有关交易的数据。我们有解密响应消息的代码。但我需要代码来检索url编码的值中的特定表单数据。

请参考下图。我需要获取突出显示的参数值。

任何人都可以帮助我。提前致谢

ScreenShot

1 个答案:

答案 0 :(得分:0)

请你试试下面的代码。检查即将进入控制台。

.success(function(data, status, headers, config) {
    console.log(headers); //for success
  })
  .error(function(data, status, headers, config) {
    console.log(headers); //for failure/error
  });