{"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":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":3},{"created":"2026-10-30T12:32:34Z","object_id":{"id":2643,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_query","title":"Query","uri":"https:\/\/zotonic.com\/id\/2643"},"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":3125,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3125"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_external_12_m_payment","page_url":{"en":"https:\/\/zotonic.com\/docs\/3125\/m_payment","x-default":"https:\/\/zotonic.com\/docs\/3125\/m_payment"},"preview_url":null,"resource":{"version":13,"pivot_location_lat":null,"title":"m_payment","is_authoritative":true,"body":"<p>Read payment data and maintain local payment records.<\/p>\n<h2>Template model paths<\/h2>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{{ m.payment.default.currency }}\n{{ m.payment.status[payment_nr].status }}\n<\/code><\/pre>\n<p><code>default.currency<\/code>, <code>default.amount<\/code> and <code>default.description<\/code> expose configured\nrequest defaults. <code>status[payment_nr]<\/code> exposes status, amount and currency;\nanonymous payments can be checked without authentication. <code>[payment_nr]<\/code> returns\nfull data to payment administrators, restricted fields to authorized users and a\nstatus subset for anonymous payments. Other unauthorized reads return <code>eacces<\/code>.<\/p>\n<p><code>list_user[user]<\/code> requires payment administration or edit access to that user.\n<code>list_email[email]<\/code> and <code>years<\/code> require payment administration. <code>redirect_psp[payment_nr]<\/code>\nrequires <code>use.mod_payment<\/code> and returns the provider&#39;s payment URL. Successful model\ncallbacks return <code>{ok, {Value, Rest}}<\/code>; lookups can return <code>{error, notfound}<\/code>.<\/p>\n<h2>Erlang API<\/h2>\n<p><code>m_payment:get(PaymentIdOrNumber, Context)<\/code> returns <code>{ok, PaymentMap}<\/code> or an error.\nDirect Erlang reads and writes are trusted server APIs and do not inherit the\nmodel-path ACL checks. Use <code>mod_payment:receive_payment\/3<\/code> for verified PSP updates\nso shared import policy, validation and notifications are applied. The database\nmodel also provides status changes, recurring payments, contact updates and searches.<\/p>","slug":"m_payment","doc_module_config":[],"is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"7609349130c9787efbf4b5c076d3e6943ad6facb8bdc0ce7a057082effc9ff68","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.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","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:35Z","title_slug":"m_payment"},"uri":"https:\/\/zotonic.com\/id\/3125","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3125"}},"status":"ok"}