我在django中使用了stripe,但是我是p格子的新手。现在,我想将格子与我的django应用程序连接起来,而不是使用格子+条纹付款。
我参考了以下文档,但我不明白如何工作 文件连结: https://plaid.com/docs/stripe/ https://stripe.com/docs/ach#using-plaid
我正在测试下面的代码,但是接下来我不知道该怎么做
<button id='linkButton'>Open Plaid Link</button>
<script src="https://cdn.plaid.com/link/v2/stable/link-initialize.js"></script>
<script>
var linkHandler = Plaid.create({
env: 'sandbox',
clientName: 'Stripe/Plaid Test',
key: '1bde1c39022bbcecaccde8cc92182d',
product: ['auth'],
selectAccount: true,
onSuccess: function(public_token, metadata) {
// Send the public_token and account ID to your app server.
console.log('public_token: ' + public_token);
console.log('account ID: ' + metadata.account_id);
},
onExit: function(err, metadata) {
// The user exited the Link flow.
if (err != null) {
// The user encountered a Plaid API error prior to exiting.
}
},
});
// Trigger the Link UI
document.getElementById('linkButton').onclick = function() {
linkHandler.open();
};
</script>
答案 0 :(得分:0)
由于找不到直接消息,所以不确定是否是在此处发布此消息的正确位置,但我也想回答这个问题。
BInjal,您在哪里运行python?我的印象是,您需要在与条带服务器不同的服务器上托管和运行它。这是正确的吗?