我只是从条纹开始,我注意到我在Chrome中收到一条警告:
无法识别的令牌创建参数参数:公司不是 识别参数。这可能会导致您在 未来。
这是代码。
stripe.createToken("account", {
company: {
name: "bbb",
address: {
line1: "77",
city: "abc",
state: "aa",
postal_code: "e2e"
}
},
tos_shown_and_accepted: true
}).then(function(result) {
debugger;
console.log(result);
});
我非常关注此处的文档(第2步)
https://stripe.com/docs/connect/account-tokens
尽管它会创建一个令牌确定。
API参考中的文档建议company
是它应该知道的对象:
https://stripe.com/docs/api/tokens/create_account
答案 0 :(得分:0)
它基本上可以告诉您什么地方出了错。
它表示company
不是该条纹终结点可以识别的参数。它创建令牌,但忽略您传递的参数