Gocardless - 节点JS中的重定向流

时间:2018-01-23 15:55:39

标签: node.js redirect gocardless

我正在尝试使用Gocardless在我的网站上启用SEPA付款。 API文档中的示例不起作用,似乎不完整

POST https://api.gocardless.com/redirect_flows HTTP / 1.1

{
  "redirect_flows": {
    "description": "Wine boxes",
    "session_token": "SESS_wSs0uGYMISxzqOBq",
    "success_redirect_url": "https://example.com/pay/confirm",
    "prefilled_customer": {
      "given_name": "Frank",
      "family_name": "Osborne",
      "email": "frank.osborne@acmeplc.com"
    }
  }
}

1 个答案:

答案 0 :(得分:0)

这是我得到的回应:

{     “错误”:{         “未找到信息”,         “错误”:[             {                 “理由”:“not_found”,                 “未找到信息”             }         ]         “documentation_url”:“https://developer.gocardless.com/api-reference#not_found”,         “type”:“invalid_api_usage”,         “request_id”:“7ae43821-345d-4ffd-98d6-15c4fe5513e6”,         “代码”:404     } }

如果从未要求应用程序的访问令牌提供请求,它如何工作?