Hi,
I am trying to implement Webhook Validation but it is showing
AttributeError: 'dict' object has no attribute 'decode
when Polar webhook trigger and this is the program I am using (just the mentioned one)
event = validate_event(
body=request.data,
headers=request.headers,
secret=config("SECRET_KEY"),
)
In validate_event it was showing validate_event got unexpected argument payload so I found in the library and found it is using body as argument not payload but the new error occured.