stripe-payments - Stripe API 转账到银行账户

标签 stripe-payments

有谁知道如何使用 Stripe API 转账到银行账户?

在 Stripe 引用中它看起来很简单:https://stripe.com/docs/api/python#create_transfer

stripe.Transfer.create(
  amount=400,
  currency="usd",
  destination="acct_19MKfXGyOv0GIG6Z",
  description="Transfer for test@example.com"
)

我不明白目的地 id 来自哪里。如何获取银行帐户的目的地 ID?

谢谢

最佳答案

Stripe 有两种类型的传输:

  • 内部转账,从 Stripe 平台账户到其关联账户之一。这被称为 "special-case transfer" .
  • 外部转账,从 Stripe 账户到其关联的银行账户。

  • 如果您只有一个指定货币的银行账户,您可以使用特殊值 "default_for_currency" destination 范围。

    例如。如果您运行此代码:
    stripe.Transfer.create(
      amount=400,
      currency="usd",
      destination="default_for_currency",
      description="Transfer for test@example.com"
    )
    

    然后 4.00 美元将被发送到您的美元银行账户。

    编辑:在较新的 API 版本 (>= 2017-04-06 ) 上,“内部转账”现在简称为“转账”,“外部转账”现在称为“支付”。参见this doc page想要查询更多的信息。

    关于stripe-payments - Stripe API 转账到银行账户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40980462/

    相关文章:

    javascript - 从纯 javascript 访问 Vue Prop

    stripe-payments - 检测订阅是否自动取消

    javascript - 将元数据添加到 Stripe 客户对象

    java - 使用 JSF 进行 Stripe Checkout 收费 : Form being submitted twice

    javascript - 如何要求 Stripe 元素字段中的信用卡字段?

    PHP Stripe Integration - 如何安装库?

    ruby-on-rails - 对如何正确使用 key 感到困惑

    ruby-on-rails - form_for 第一个参数在 rails 4 中不能为 nil 或为空

    javascript - Stripe Checkout 与 Rails 中的自定义集成

    c# - 添加元数据以对客户进行 strip 化