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.
Describe the bug
Webhook breaks if there's multiple projects registered to the account.
To Reproduce
Have project A and project B.
Ignore project A, add project B API keys. Manually sync. It will automatically add project A secret(!!!!!!!!) api key (why does it even do that?). Now try to add a product in project B - the webhook will return "Product doesn't exist" error. Where I suspect it tried to check for the product on project A instead of B.
EDIT: Turns out STRIPE_TEST_SECRET_KEY was using the Project A keys so it would do weird stuff. Please either have the env keys have the key or the db.
Describe the bug Webhook breaks if there's multiple projects registered to the account.
To Reproduce Have project A and project B.
Ignore project A, add project B API keys. Manually sync. It will automatically add project A secret(!!!!!!!!) api key (why does it even do that?). Now try to add a product in project B - the webhook will return "Product doesn't exist" error. Where I suspect it tried to check for the product on project A instead of B.
Software versions