LLMS_Transaction::get_refund( string $id )
Retrieves a single refund by ID.
Parameters Parameters
- $id
-
(string) (Required) The refund ID.
Return Return
(array|boolean) An array of refund data. Returns false
if the ID isn't found.
- 'id'
(string) The refund ID - 'date'
(string) The date the refund was recorded in MySQL date formatY-m-d H:i:s
. - 'method'
(string) The processing method ID. Defaults are "manual" or "gateway". Custom values can be implemented via hooks. - 'amount'
(float) The amount of the refund.
Source Source
File: includes/models/model.llms.transaction.php
public function get_refund( $id ) { $refunds = $this->get_refunds(); return $refunds[ $id ] ?? false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |