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.
https://dj-stripe.dev
MIT License
1.56k stars 474 forks source link

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

Closed arnav13081994 closed 2 months ago

arnav13081994 commented 5 months ago

Describe the bug

stripe_trigger_account columns gets populated incorrect for Connect Webhook Events.

Software versions

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