{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2026-11-10T16:33:30Z","object_id":{"id":3161,"is_a":["text","documentation","reference","module"],"name":"doc_external_14_mod_payment_stripe","title":"mod_payment_stripe","uri":"https:\/\/zotonic.com\/id\/3161"},"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-11-10T16:33:30Z","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-11-10T16:33:30Z","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-11-10T16:33:30Z","object_id":{"id":2565,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_integrator","title":"Integrator","uri":"https:\/\/zotonic.com\/id\/2565"},"seq":3},{"created":"2026-11-10T16:33:30Z","object_id":{"id":2599,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_api_and_integration","title":"API and integration","uri":"https:\/\/zotonic.com\/id\/2599"},"seq":4},{"created":"2026-11-10T16:33:30Z","object_id":{"id":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":5},{"created":"2026-11-10T16:33:30Z","object_id":{"id":3121,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_payments","title":"Payments","uri":"https:\/\/zotonic.com\/id\/3121"},"seq":6}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"export_revision":15,"id":3164,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3164"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_external_14_m_payment_stripe_api","page_url":{"en":"https:\/\/zotonic.com\/docs\/3164\/m_payment_stripe_api","x-default":"https:\/\/zotonic.com\/docs\/3164\/m_payment_stripe_api"},"preview_url":null,"resource":{"version":1,"pivot_location_lat":null,"title":"m_payment_stripe_api","is_authoritative":true,"body":"<p>Create and synchronize Stripe payment-mode Checkout Sessions.<\/p>\n<p>This module exposes Erlang functions rather than template model paths.\n<code>create(PaymentId, Context)<\/code> creates a session for an existing local payment and\nreturns <code>{ok, #payment_psp_handler{}}<\/code> or an error. Use the shared payment-request\nnotification for ordinary checkout; recurring session creation is unsupported.<\/p>\n<p>For example, <code>m_payment_stripe_api:fetch_session(SessionId, Context)<\/code> returns\n<code>{ok, SessionMap}<\/code> or <code>{error, Reason}<\/code>. <code>sync_payment_session_status\/2<\/code> retrieves\nand applies session status. <code>expire_payment_session\/2<\/code> handles cancellation via\nthe provider. <code>receive_session\/3<\/code> feeds verified session data into shared payment\nreceiving. API calls use <code>mod_payment_stripe.secret_key<\/code>.<\/p>\n<p>These functions are trusted server APIs without model-path ACL checks. Webhook\nsignature verification belongs to <code>controller_stripe_webhook<\/code>, before event data\nreaches this module.<\/p>","slug":"m_payment_stripe_api","doc_module_config":[],"is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"9b585787de72eaeaf52cf2ccbeb26d1b2f0001bf7793e766cadad12c442b7797","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":14,"is_a":[],"name":null,"title":null,"uri":"https:\/\/zotonic.com\/id\/14"},"git_url":"https:\/\/github.com\/zotonic\/zotonic_mod_payment_stripe","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_stripe_api.erl","publication_start":"2026-11-10T16:33:30Z","github_url":"https:\/\/github.com\/zotonic\/zotonic_mod_payment_stripe","pivot_location_lng":null,"doc_source_kind":"external","name":"doc_external_14_m_payment_stripe_api","is_unfindable":false,"is_published":true,"pivot_geocode":null,"external_module_title":"Payment module for Stripe","created":"2026-11-10T16:33:30Z","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":"969df8fd570744e3a6e5bef42ce3bb989b619bb9","creator_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"modified":"2026-11-10T16:33:30Z","title_slug":"m_payment_stripe_api"},"uri":"https:\/\/zotonic.com\/id\/3164","uri_template":"https:\/\/zotonic.com\/id\/:id","version":15,"websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3164"}},"status":"ok"}