LLMS_Transaction::get_refund( string $id )

Retrieves a single refund by ID.

Parameters Parameters


(string) (Required) The refund ID.

Top ↑

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 format Y-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.

Top ↑

Source Source

File: includes/models/model.llms.transaction.php

	public function get_refund( $id ) {
		$refunds = $this->get_refunds();
		return $refunds[ $id ] ?? false;

Top ↑

Changelog Changelog

Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.