stripe-payments - 如何获得条带连接帐户的总支出?
问题描述
有没有办法获得每个条带连接帐户的总支出?
我的意思是仍在传输到银行的付款金额。不是完成的。
在条纹仪表板上,我可以确认每个连接帐户的金额,但我不确定如何使用 API 在我的应用程序上获得该金额。
解决方案
我相信您在检索关联账户的支付列表时必须指定关联账户 ID 和外部账户 ID。
Stripe::Payout.list({destination: external_account_id}, {stripe_account: connected_account_id})
当您检索特定的一笔支出时,如下所示。
好的:
Stripe::Payout.retrieve('po_**********', {stripe_account: 'acct_**********'})
坏的:
Stripe::Payout.retrieve('po_**********')
推荐阅读
- java - Android 中的自定义日历 | 爪哇
- css - 为什么同一行上的网格项不与同一行中的兄弟姐妹之一的高度对齐?
- flutter - 我无法使用 textfiled 更新用户数据
- flutter - 在完成 initState 之前不会出现第二个屏幕
- java - 无法加载请求的类:在 JBOSS 部署时 org.hibernate.dialect.DB2
- java - Java 正则表达式检测缺失组
- javascript - 按特定顺序获取 api 请求
- python - Pygame.init() 错误:致命的 Python 错误:(pygame 降落伞)分段错误
- cypress - 无法从 cypress 启动 url
- angular - 在Angular上的div类下拉菜单的按钮下拉菜单上获取背景颜色