条带检索营业税ID

时间:2019-02-15 11:53:18

标签: python stripe-payments

我正在使用条纹连接。我的一些用户创建公司帐户并提供business_tax_id(我在德国)。

我无法从条带化帐户中检索此信息:

acct = stripe.Account.retrieve(acct_exampleid)

# for example this works:
acct['legal_entity']['first_name']
acct['legal_entity']['personal_address']

# But there is no var for business tax id:
acct['business_tax_id'] # produces error
acct['legal_entity']['business_tax_id'] # produces error

我可以通过一种解决方法轻松解决此问题,并在创建帐户时将税号保存在元数据中。但这可能是一项安全功能,那么这里发生了什么?我是否缺少某些功能或这是一项安全功能?

创建帐户时,我在此处添加税号:

# ...
legal_entity={
    'business_name': form_stripe.business_name.data,
    'business_tax_id': form_stripe.business_tax_id.data
}
# ...

0 个答案:

没有答案