# m\_payment\_buckaroo\_api

Source: https://zotonic.com/docs/3180/m_payment_buckaroo_api

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

Language: en



Create Buckaroo transactions and normalize their verified status updates.

This is an Erlang API module without template model paths. `create(PaymentId, Context)` creates checkout for an existing local payment and returns `{ok, #payment_psp_handler{}}` or an error. Calls use the configured website and secret keys and the live/test environment selected by mod\_payment\_buckaroo.

For example, `m_payment_buckaroo_api:transaction_status(TransactionId, Context)` returns `{ok, {StatusCode, DateTime}}` or `{error, Reason}`. `is_valid_authorization_header/2` verifies a push against its original request body; `webhook_data/2` processes decoded, verified push data. The controller performs verification before invoking that processing function.

These functions are intended for trusted server callers and do not implement model-path ACL checks. Use the shared payment-request notification for application checkout and the shared receive policy for verified incoming payments.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3180?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/3180?language=en>)
