node.js - 无法使用 listSources 或 listCards 方法检索卡片
问题描述
成功向客户添加了一张卡片(使用 Stripe.js createSource 创建,使用 stripe-node createSource 附加),我无法使用 listCards 或 listSources 访问卡片。但是,我可以使用paymentMethods.list访问它们。
附卡使用:
// server
const attachSource = async (customerId: string, source: string) =>
await stripe.customers.createSource(customerId, { source });
列出卡片:
// server
export const listCards = async (customerId: string, limit?: number) =>
await stripe.customers.listCards(customerId, { limit });
我的 Stripe 仪表板不显示 Sources 部分;通过 top 方法添加的卡片出现在卡片部分。
上下文:具有可调用 Firebase 云功能的节点服务器与条带 v3 节点客户端对话。
解决方案
推荐阅读
- javascript - Let 在函数中定义,但全局变化 Javascript
- mdx - 当我在 SSAS 多维数据集中运行以下 MDX 时,我得到一个数字。有人可以告诉我发生了什么以及为什么当我运行它时?
- laravel - 帆作曲家优化自动装载机破帆
- python - 检查两个不同数据帧中的字符串并复制相应的行以计算 Pandas 中的统计信息
- javascript - 如何从 AppScript 在新窗口中打开 Google 表格?
- javascript - 使用 cypress 检索嵌套的 div
- monogame - “无法初始化 OpenALSoundController” Monogame
- https - http 到 https 迁移后广告未呈现
- django - Django如何在模板中使用块
- html - graphql查询未呈现到页面