Payment
FinalYes
Table of Contents
Constants
- ERROR_CODE_API_NOT_AVAILABLE = 'CRM_BARCODE_PAYMENT_API_NOT_AVAILABLE'
Methods
- __construct() : mixed
- isSavedTemporary() : bool
- render() : string|false
- saveToTemporaryFile() : string|null
- Renders and saves the barcode to a temporary file
- validate() : Result
Constants
ERROR_CODE_API_NOT_AVAILABLE
public
mixed
ERROR_CODE_API_NOT_AVAILABLE
= 'CRM_BARCODE_PAYMENT_API_NOT_AVAILABLE'
Methods
__construct()
public
__construct(TransactionData $data) : mixed
Parameters
- $data : TransactionData
isSavedTemporary()
public
isSavedTemporary() : bool
Return values
boolrender()
public
render() : string|false
Return values
string|falsesaveToTemporaryFile()
Renders and saves the barcode to a temporary file
public
saveToTemporaryFile([int $hoursToKeep = 1 ]) : string|null
Parameters
- $hoursToKeep : int = 1
Tags
Return values
string|null —- path to temporary file or null on failure
validate()
public
validate() : Result