Skip to content

Commit

Permalink
Bug techjoomla#65 fix: Payment logs are not stored in log file
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush-maherwal committed Mar 28, 2022
1 parent 1a0adb8 commit f3e30c1
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 18 deletions.
3 changes: 2 additions & 1 deletion code/plugins/alphauserpoints/alphauserpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentAlphauserpointHelper::Storelog($this->_name, $data);
$plgPaymentAlphauserpointHelper = new plgPaymentAlphauserpointHelper;
$log = $plgPaymentAlphauserpointHelper->Storelog($this->_name, $data);
}
}
}
3 changes: 2 additions & 1 deletion code/plugins/altauserpoints/altauserpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
plgPaymentAltauserpointHelper::Storelog($this->_name, $data);
$plgPaymentAltauserpointHelper = new plgPaymentAltauserpointHelper;
$plgPaymentAltauserpointHelper->Storelog($this->_name, $data);
}
}
}
3 changes: 2 additions & 1 deletion code/plugins/ccavenue/ccavenue.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentCcavenueHelper::Storelog($this->_name, $data);
$plgPaymentCcavenueHelper = new plgPaymentCcavenueHelper;
$log = $plgPaymentCcavenueHelper->Storelog($this->_name, $data);
}
}

Expand Down
3 changes: 2 additions & 1 deletion code/plugins/easysocialpoints/easysocialpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ class Plgpaymenteasysocialpoints extends CMSPlugin

if ($log_write == 1)
{
$log = plgPaymenteasysocialpointsHelper::Storelog($this->_name, $data);
$plgPaymenteasysocialpointsHelper = new plgPaymenteasysocialpointsHelper;
$log = $plgPaymenteasysocialpointsHelper->Storelog($this->_name, $data);
}
}
}
3 changes: 2 additions & 1 deletion code/plugins/epaydk/epaydk.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentEpaydkHelper::Storelog($this->_name, $data);
$plgPaymentEpaydkHelper = new plgPaymentEpaydkHelper;
$log = $plgPaymentEpaydkHelper->Storelog($this->_name, $data);
}
}

Expand Down
3 changes: 2 additions & 1 deletion code/plugins/eway/eway.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ function onTP_Storelog($data)

if($log_write == 1)
{
$log = plgPaymentEwayHelper::Storelog($this->_name,$data);
$plgPaymentEwayHelper = new plgPaymentEwayHelper;
$log = $plgPaymentEwayHelper->Storelog($this->_name,$data);
}
}
/*
Expand Down
3 changes: 2 additions & 1 deletion code/plugins/ewayrapid3/ewayrapid3.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentEwayrapid3Helper::Storelog($this->_name, $data);
$plgPaymentEwayrapid3Helper = new plgPaymentEwayrapid3Helper;
$log = $plgPaymentEwayrapid3Helper->Storelog($this->_name, $data);
}
}

Expand Down
3 changes: 2 additions & 1 deletion code/plugins/jomsocialpoints/jomsocialpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentJomsocialpointsHelper::Storelog($this->_name, $data);
$plgPaymentJomsocialpointsHelper = new plgPaymentJomsocialpointsHelper;
$log = $plgPaymentJomsocialpointsHelper->Storelog($this->_name, $data);
}
}
}
3 changes: 2 additions & 1 deletion code/plugins/linkpoint/linkpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentLinkpointHelper::Storelog($this->_name, $data);
$plgPaymentLinkpointHelper = new plgPaymentLinkpointHelper;
$log = $plgPaymentLinkpointHelper->Storelog($this->_name, $data);
}
}
}
3 changes: 2 additions & 1 deletion code/plugins/ogone/ogone.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentOgoneHelper::Storelog($this->_name, $data);
$plgPaymentOgoneHelper = new plgPaymentOgoneHelper;
$log = $plgPaymentOgoneHelper->Storelog($this->_name, $data);
}
}
}
3 changes: 2 additions & 1 deletion code/plugins/pagseguro/pagseguro.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ function onTP_Storelog($data)

if($log_write == 1)
{
$log = plgPaymentPagseguroHelper::Storelog($this->_name,$data);
$plgPaymentPagseguroHelper = new plgPaymentPagseguroHelper;
$log = $plgPaymentPagseguroHelper->Storelog($this->_name,$data);
}
}
}
3 changes: 2 additions & 1 deletion code/plugins/payfast/payfast.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentPayfastHelper::Storelog($this->_name, $data);
$plgPaymentPayfastHelper = new plgPaymentPayfastHelper;
$log = $plgPaymentPayfastHelper->Storelog($this->_name, $data);
}
}

Expand Down
3 changes: 2 additions & 1 deletion code/plugins/paymill/paymill.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentpaymillHelper::Storelog($this->_name,$data);
$plgPaymentpaymillHelper = new plgPaymentpaymillHelper;
$log = $plgPaymentpaymillHelper->Storelog($this->_name,$data);
}
}

Expand Down
7 changes: 5 additions & 2 deletions code/plugins/paypal/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ public function onTP_Processpayment($data)
$jinput = Factory::getApplication()->input;
$componentName = $jinput->get("option", "cpg_");

$verify = plgPaymentPaypalHelper::validateIPN($data, $componentName);
$plgPaymentPaypalHelper = new plgPaymentPaypalHelper;
$verify = $plgPaymentPaypalHelper->validateIPN($data, $componentName);

if (!$verify)
{
Expand Down Expand Up @@ -383,7 +384,9 @@ public function onTP_Storelog($data)
if ($log_write == 1)
{
$logData["raw_data"] = $data;
$log = plgPaymentPaypalHelper::Storelog($this->_name, $data);

$plgPaymentPaypalHelper = new plgPaymentPaypalHelper;
$log = $plgPaymentPaypalHelper->Storelog($this->_name, $data);
}
}
}
6 changes: 4 additions & 2 deletions code/plugins/paypal_adaptive_payment/adaptive_paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentAdaptivePaypalHelper::Storelog($this->_name, $data);
$plgPaymentAdaptivePaypalHelper = new plgPaymentAdaptivePaypalHelper;
$log = $plgPaymentAdaptivePaypalHelper->Storelog($this->_name, $data);
}
}

Expand All @@ -367,7 +368,8 @@ function onTP_Storelog($data)
*/
public function _StorelogBeforePayment($data, $client, $item_name)
{
$log = plgPaymentAdaptivePaypalHelper::StorelogBeforePayment($this->_name, $data, $client, $item_name);
$plgPaymentAdaptivePaypalHelper = new plgPaymentAdaptivePaypalHelper;
$log = $plgPaymentAdaptivePaypalHelper->StorelogBeforePayment($this->_name, $data, $client, $item_name);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion code/plugins/paypalpro/paypalpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ public function onTP_Storelog($data)

if ($log_write == 1)
{
$log = plgPaymentPaypalproHelper::Storelog($this->_name, $data);
$plgPaymentpaypalproHelper = new plgPaymentpaypalproHelper;
$log = $plgPaymentpaypalproHelper->Storelog($this->_name, $data);
}
}
}

0 comments on commit f3e30c1

Please sign in to comment.