mhlb_print_transaction
Generate a printable receipt PDF from a transaction object. Pass the transaction data from mhlb_get_transaction to render the record as a PDF file.
Instructions
Generate the printable receipt PDF for one transaction. Pass the transaction object from mhlb_get_transaction — the endpoint renders that record, it does not look one up by id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | Return the PDF as base64 in the result instead of writing it to a file. Default false. | |
| filename | No | Output filename. Defaults to "Transaction.pdf". | |
| transaction | Yes | The transaction detail object, as returned by mhlb_get_transaction. | |
| isCreditType | No | Render as a credit rather than a payment. Default false. |