dj-stripe / dj-stripe

dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.

Home Page:https://dj-stripe.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect Stripe Trigger Account gets populated for events fired on a Stripe Connected Account

arnav13081994 opened this issue · comments

Describe the bug

stripe_trigger_account columns gets populated incorrect for Connect Webhook Events.

Software versions

  • dj-stripe version: All
  • Python version: All
  • Django version: All
  • Stripe API version: All
  • Database type and version: All

Steps To Reproduce

  1. Execute stripe trigger customer.created --stripe-account <CONNECTED_ACCOUNT_ID>
  2. Go to WebhookEventTrigger table for the associated event
  3. Notice in the Change View that the stripe_trigger_account field is populated with the platform account and not the connected account.

Can you reproduce the issue with the latest version of master?

Yes

Expected Behavior

stripe_trigger_account should be populated with the account of the Connected Account

Actual Behavior