{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2026-10-30T12:32:34Z","object_id":{"id":3122,"is_a":["text","documentation","reference","module"],"name":"doc_external_12_mod_payment","title":"mod_payment","uri":"https:\/\/zotonic.com\/id\/3122"},"seq":1}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"subject":{"objects":[{"created":"2026-10-30T12:32:34Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-10-30T12:32:34Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-10-30T12:32:34Z","object_id":{"id":2607,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_logging_and_monitoring","title":"Logging and monitoring","uri":"https:\/\/zotonic.com\/id\/2607"},"seq":3},{"created":"2026-10-30T12:32:34Z","object_id":{"id":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":4},{"created":"2026-10-30T12:32:34Z","object_id":{"id":3121,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_payments","title":"Payments","uri":"https:\/\/zotonic.com\/id\/3121"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":3127,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3127"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_external_12_m_payment_log","page_url":{"en":"https:\/\/zotonic.com\/docs\/3127\/m_payment_log","x-default":"https:\/\/zotonic.com\/docs\/3127\/m_payment_log"},"preview_url":null,"resource":{"version":13,"pivot_location_lat":null,"title":"m_payment_log","is_authoritative":true,"body":"<p>Append audit events to a payment&#39;s log from trusted server code.<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">m_payment_log:log(PaymentId, &lt;&lt;&quot;received&quot;&gt;&gt;,\n    #{psp_module =&gt; mod_payment_stripe, description =&gt; &lt;&lt;&quot;Payment received&quot;&gt;&gt;}, Context).\n<\/code><\/pre>\n<p><code>log\/4<\/code> accepts an event and a map or property list. Events are trimmed and\nlowercased; property-list keys become binaries. The result is <code>{ok, LogId}<\/code> or\n<code>{error, Reason}<\/code>. Log rows belong to a payment and are deleted with it.\nThis module has no template model paths or independent ACL checks; callers must\nprovide an authorized server context and avoid logging unnecessary sensitive data.<\/p>","slug":"m_payment_log","doc_module_config":[],"is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"a8936de26235fb271f706d7fef0e1c94d476658d0e688ddcc6c3be825d138eb4","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"external_module_id":{"id":12,"is_a":[],"name":null,"title":null,"uri":"https:\/\/zotonic.com\/id\/12"},"git_url":"https:\/\/github.com\/zotonic\/zotonic_mod_payment","category_id":{"id":322,"is_a":["meta","category"],"name":"model","title":"Models","uri":"https:\/\/test.zotonic.com\/id\/322"},"doc_source_path":".\/src\/models\/m_payment_log.erl","publication_start":"2026-10-30T12:32:34Z","github_url":"https:\/\/github.com\/zotonic\/zotonic_mod_payment","pivot_location_lng":null,"doc_source_kind":"external","name":"doc_external_12_m_payment_log","is_unfindable":false,"is_published":true,"pivot_geocode":null,"external_module_title":"Payments","created":"2026-10-30T12:32:34Z","uri":null,"doc_status":"current","is_dependent":false,"is_external_module":true,"publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"16f7d181e960c2c5d9c468bb181f02f02e1ea02b","creator_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"modified":"2026-10-30T12:32:36Z","title_slug":"m_payment_log"},"uri":"https:\/\/zotonic.com\/id\/3127","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3127"}},"status":"ok"}