# m\_payment\_mollie\_api

Source: https://zotonic.com/docs/3168/m_payment_mollie_api

URI: https://zotonic.com/id/3168

Language: en



Call Mollie and translate payments and subscriptions into local payment updates.

This is a server-side API module, not a template model: it has no `m_get/3` paths. `create(PaymentId, Context)` creates checkout for an existing local EUR or USD payment and returns `{ok, #payment_psp_handler{}}` or an error. Application checkout should normally use the shared `#payment_request{}` notification.

For example, `m_payment_mollie_api:payment_sync(PaymentId, Context)` fetches and synchronizes a known payment. `payment_sync_webhook/3` takes the original local payment number and the external payment ID. `list_subscriptions/2`, `has_subscription/2` and `cancel_subscription/2` operate on a user's subscriptions; email-based lookup variants are also available.

Calls use `mod_payment_mollie.api_key` and propagate API errors. Direct Erlang operations are intended for trusted callers and do not provide model-path ACLs.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3168?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3168?language=en>)
