m_payment_buckaroo_api

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.