Version 4.1.19.4

This commit is contained in:
Neo committed 2025-12-19 05:42:01 -08:00
1 parent 2bd5025018
commit 0dc2aee5ed
312 files changed
+53730 -32118

No files matched your search

@@ -505,7 +505,7 @@ class _Transaction extends \IPS\Patterns\ActiveRecord
* Check fraud rules and capture
*
* @param \IPS\nexus\Fraud\MaxMind\Request|NULL $maxMind *If* MaxMind is enabled, the request object will be passed here so gateway can additional data before request is made
* @return void
* @return \IPS\Member|NULL If the invoice belonged to a guest, a member will be created by approving and returned here
* @throws \LogicException
*/
public function checkFraudRulesAndCapture( $maxMind=NULL )
@@ -520,8 +520,9 @@ class _Transaction extends \IPS\Patterns\ActiveRecord
/* If we're not being fraud blocked, we can capture and approve */
if ( $fraudResult === static::STATUS_PAID )
{
$this->captureAndApprove();
return $this->captureAndApprove();
}
return NULL;
}
/**
@@ -566,7 +567,7 @@ class _Transaction extends \IPS\Patterns\ActiveRecord
/**
* Capture and approve
*
* @return void
* @return \IPS\Member|NULL If the invoice belonged to a guest, a member will be created by approving and returned here
* @throws \LogicException
*/
public function captureAndApprove()
@@ -581,7 +582,7 @@ class _Transaction extends \IPS\Patterns\ActiveRecord
'invoice_title' => $this->invoice->title,
) );
$this->approve();
return $this->approve();
}
/**
@@ -601,7 +602,7 @@ class _Transaction extends \IPS\Patterns\ActiveRecord
* Approve
*
* @param \IPS\Member|NULL $by The staff member approving, or NULL if it's automatic
* @return void
* @return \IPS\Member|NULL If the invoice belonged to a guest, a member will be created by approving and returned here
*/
public function approve( $by = NULL )
{
@@ -622,8 +623,9 @@ class _Transaction extends \IPS\Patterns\ActiveRecord
/* Mark the invoice paid if necessary */
if ( !$this->invoice->amountToPay()->amount->isGreaterThanZero() )
{
$this->invoice->markPaid();
return $this->invoice->markPaid();
}
return NULL;
}
/**