Plaid开发模式是否支持webhook?

faz*_*ear 4 plaid

我正在使用plaid-ruby,尝试使用webhook添加用户:

Plaid.add_user 'connect',
               params['username'],
               params['password'],
               params['bank_type'],
               params['pin'],
               {
                 list: params['list'],
                 login_only: true,
                 webhook: 'http://requestb.in/rrd6zbrr'
               }
Run Code Online (Sandbox Code Playgroud)

但没有运气,不要求requestbin.

Plaid是否支持开发模式下的webhooks?或者requestb.in被阻止了?

tod*_*ddg 5

格子测试环境确实支持webhooks.我联系了Plaid支持,专门询问Plaid Link,因为这是我在iOS应用程序中使用的内容.以下是我从Plaid收到的回复:

Plaid Link确实支持webooks.下面是一些示例代码来说明:

<button id='linkButton'>Open Plaid Link</button>
<script src="https://cdn.plaid.com/link/stable/link-initialize.js"></script>
<script>
var linkHandler = Plaid.create({
  env: 'tartan',
  clientName: 'Test',
  key: 'test_key',
  product: 'connect',
  webhook: '[WEBHOOK URL]',
  onSuccess: function(public_token, metadata) {
    // Send your public_token to your app server here.
  },
});

// Trigger the Link UI
document.getElementById('linkButton').onclick = function() {
  linkHandler.open();
};
</script>
Run Code Online (Sandbox Code Playgroud)

请注意,产品必须是"connect",并且您必须提供webhook URL.

我能够在我自己的环境中使用webhooks(iOS客户端应用程序,使用Parse/Heroku后端),但我没有使用测试凭据 - 我使用了真实帐户.仅供参考,我在添加用户和收到webhook之间花了大约10分钟.