【发布时间】: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() 是我需要的?
【问题讨论】: