Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having multiple projects breaks the webhook #2054

Closed
jTiKey opened this issue May 6, 2024 · 1 comment
Closed

Having multiple projects breaks the webhook #2054

jTiKey opened this issue May 6, 2024 · 1 comment
Labels

Comments

@jTiKey
Copy link

jTiKey commented May 6, 2024

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

  • Dj-Stripe version: 2.8.4
  • Python version: 3.11.8
  • Django version:4.2.11
  • Stripe API version: default
  • Database type and version: postgres 15
@jTiKey jTiKey added the bug label May 6, 2024
@jTiKey
Copy link
Author

jTiKey commented May 6, 2024

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.

@jTiKey jTiKey closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant