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.
# Stripe Settings
STRIPE_LIVE_MODE = not DEBUG # Live Mode is the opposite of DEBUG mode
DJSTRIPE_USE_NATIVE_JSONFIELD = True
DJSTRIPE_FOREIGN_KEY_TO_FIELD = "id"
DJSTRIPE_WEBHOOK_SECRET = os.getenv("DJSTRIPE_WEBHOOK_SECRET")
then go into your admin
go to the add webhook form and type web:8000 (which is required for Docker setup) and then click save
Expected behavior
That the form saves and creates the field
Environment
dj-stripe version: 2.8.2
Your Stripe account's default API version:local
Database: Postgres
Python version: 3.10
Django version: 4.2
Can you reproduce the issue with the latest version of master?
Describe the bug When saving a webhook the form validation fails in the post_clean method raising
To Reproduce Steps to reproduce the behavior: Make sure your app is running from a docker service
create a container like
make your settings have these values
then go into your admin
go to the add webhook form and type web:8000 (which is required for Docker setup) and then click save
Expected behavior That the form saves and creates the field
Environment
Can you reproduce the issue with the latest version of master?
Yes