元组对象在webhook中没有属性'stripe_customer_key

时间:2017-02-08 07:35:03

标签: python django stripe-payments

当我遇到这个问题时,我想处理条纹webhook

  

AttributeError:tuple对象没有属性'stripe_customer_key

我的代码是:

dash_user.stripe_customer_key = event_json['data']['object']['subscriptions']['data'][0]['customer']

1 个答案:

答案 0 :(得分:0)

请分享您的代码。什么是dash_user?这是一个字吗?如果是,你应该做

dash_user['stripe_customer_key']