小编Cod*_*Sta的帖子

stripe.createToken() 不是函数

我在 node.js 中使用条纹。

我需要创建一个带有银行详细信息的条带令牌。为此,我使用了条带文档中给出的以下代码:

stripe.createToken('bank_account', {
  country: 'US',
  currency: 'usd',
  routing_number: '110000000',
  account_number: '000123456789',
  account_holder_name: 'Jenny Rosen',
  account_holder_type: 'individual',
}).then(function(result) {
    console.log("result", result);
});
Run Code Online (Sandbox Code Playgroud)

但我收到此错误,“stripe.createToken() 不是函数”。

我也试过“stripe.tokens.create({ bank_account: {})”,但它没有给出令牌“account”。

需要某人的宝贵帮助。

stripe-payments

6
推荐指数
1
解决办法
917
查看次数

标签 统计

stripe-payments ×1