【问题标题】:Stripe disconnect a connected account with Python SDKStripe 使用 Python SDK 断开连接的帐户
【发布时间】:2021-08-02 03:11:59
【问题描述】:

我正在尝试使用 Stripe Python SDK 断开已连接的 Stripe 帐户与我的应用的连接。注意:我不想完全删除用户的 Stripe 帐户(我不应该有这样做的权限)我只想断开它与我的 Stripe 应用的连接。

import stripe

stripe.api_key = STRIPE_SECRET_KEY

# Get the account to be disconnected
account = stripe.Account.retrieve(id='acct_XXXXXXXXXXXXXXX')

# Delete I think is NOT what I need
account.delete()

也许account.deauthorize() 是我需要的?

【问题讨论】:

    标签: python stripe-payments


    【解决方案1】:

    如果您想断开帐户,请使用 OAuth:https://stripe.com/docs/connect/oauth-reference

    如果您想拒绝一个帐户(说他们是欺诈性的),您可以使用拒绝端点:https://stripe.com/docs/api/account/reject

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-28
      • 2021-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-27
      • 1970-01-01
      相关资源
      最近更新 更多