{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2026-11-10T16:33:40Z","object_id":{"id":3172,"is_a":["text","documentation","reference","module"],"name":"doc_external_16_mod_payment_paypal","title":"mod_payment_paypal","uri":"https:\/\/zotonic.com\/id\/3172"},"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:40Z","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:40Z","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:40Z","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:40Z","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:40Z","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:40Z","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":3175,"is_a":["text","documentation","reference","model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3175"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_external_16_m_payment_paypal_api","page_url":{"en":"https:\/\/zotonic.com\/docs\/3175\/m_payment_paypal_api","x-default":"https:\/\/zotonic.com\/docs\/3175\/m_payment_paypal_api"},"preview_url":null,"resource":{"version":1,"pivot_location_lat":null,"title":"m_payment_paypal_api","is_authoritative":true,"body":"<p>Create, capture and synchronize PayPal Orders and verify webhook events.<\/p>\n<p>This module exposes trusted Erlang APIs and has no template model paths.\n<code>create(PaymentNr, Context)<\/code> creates an order for an existing local payment,\nreturning <code>{ok, #payment_psp_handler{}}<\/code> or an error. Recurring creation is unsupported.<\/p>\n<p>For example, <code>m_payment_paypal_api:fetch_order(OrderId, Context)<\/code> returns\n<code>{ok, OrderMap}<\/code> or <code>{error, Reason}<\/code>. <code>capture_order\/2<\/code> captures an approved order;\n<code>sync_order_status\/2<\/code> refreshes its local status. <code>ping(Context)<\/code> returns <code>ok<\/code> if\nconfigured credentials can obtain an OAuth token, or <code>{error, Reason}<\/code>.<\/p>\n<p>Credentials and the live\/sandbox selection come from mod_payment_paypal settings.\nWebhook signature verification uses <code>webhook_id<\/code> and PayPal&#39;s verification API.\n<code>webhook_event\/2<\/code> processes already verified events; callers must not send unverified\nrequest bodies directly to it. Direct calls do not enforce administrative ACLs.<\/p>","slug":"m_payment_paypal_api","doc_module_config":[],"is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"f1a7f3916b5a073954f21558e68f6fd4c29af68d0d9876191fb6c1b3bfeb0255","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":16,"is_a":[],"name":null,"title":null,"uri":"https:\/\/zotonic.com\/id\/16"},"git_url":"https:\/\/github.com\/zotonic\/zotonic_mod_payment_paypal","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_paypal_api.erl","publication_start":"2026-11-10T16:33:40Z","github_url":"https:\/\/github.com\/zotonic\/zotonic_mod_payment_paypal","pivot_location_lng":null,"doc_source_kind":"external","name":"doc_external_16_m_payment_paypal_api","is_unfindable":false,"is_published":true,"pivot_geocode":null,"external_module_title":"Payment module for PayPal","created":"2026-11-10T16:33:40Z","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":"4ddce7233387a5d9ac2a4ea02eec598a7b4f9398","creator_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"modified":"2026-11-10T16:33:40Z","title_slug":"m_payment_paypal_api"},"uri":"https:\/\/zotonic.com\/id\/3175","uri_template":"https:\/\/zotonic.com\/id\/:id","version":15,"websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/3175"}},"status":"ok"}