diff --git a/aries_cloudagent/protocols/issue_credential/v2_0/messages/cred_ex_record_webhook.py b/aries_cloudagent/protocols/issue_credential/v2_0/messages/cred_ex_record_webhook.py index ef71eded68..aca1a4c39c 100644 --- a/aries_cloudagent/protocols/issue_credential/v2_0/messages/cred_ex_record_webhook.py +++ b/aries_cloudagent/protocols/issue_credential/v2_0/messages/cred_ex_record_webhook.py @@ -23,6 +23,7 @@ class V20CredExRecordWebhook: "credential_definition_id", "schema_id", "credential_id", + "by_format", "trace", "public_did", "cred_id_stored", diff --git a/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py b/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py index 1eece14bac..b6a68d8419 100644 --- a/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py +++ b/aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py @@ -197,11 +197,11 @@ async def emit_event(self, session: ProfileSession, payload: Any = None): else: topic = f"{self.EVENT_NAMESPACE}::{self.RECORD_TOPIC}" - if session.profile.settings.get("debug.webhooks"): - if not payload: - payload = self.serialize() + # serialize payload before checking for webhook contents + if not payload: + payload = self.serialize() else: - payload = V20CredExRecordWebhook(**self.__dict__) + payload = V20CredExRecordWebhook(**payload) payload = payload.__dict__ await session.profile.notify(topic, payload) diff --git a/demo/run_bdd b/demo/run_bdd index 8b4c602818..01b3314d52 100755 --- a/demo/run_bdd +++ b/demo/run_bdd @@ -210,6 +210,9 @@ fi if ! [ -z "$WEBHOOK_TARGET" ]; then DOCKER_ENV="${DOCKER_ENV} -e WEBHOOK_TARGET=${WEBHOOK_TARGET}" fi +if ! [ -z "$ACAPY_DEBUG_WEBHOOKS" ]; then + DOCKER_ENV="${DOCKER_ENV} -e ACAPY_DEBUG_WEBHOOKS=${ACAPY_DEBUG_WEBHOOKS}" +fi # if $TAILS_NETWORK is specified it will override any previously specified $DOCKER_NET if ! [ -z "$TAILS_NETWORK" ]; then DOCKER_NET="${TAILS_NETWORK}"