Skip to content

Commit

Permalink
fixed message key
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoba committed Aug 5, 2020
1 parent feee715 commit d3820b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/payppaypalpluswebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected function _throwNoPaymentFoundException()
{
/** @var paypPayPalPlusNoPaymentFoundException $oEx */
$oEx = $this->getShop()->getNew('paypPayPalPlusNoPaymentFoundException');
$sMessage = $this->getShop()->translate('payp_PAYPALPLUS_ERROR_NO_PAYMENT_FOUND_FOR_EVENT');
$sMessage = $this->getShop()->translate('PAYP_PAYPALPLUS_ERROR_NO_PAYMENT_FOUND_FOR_EVENT');
$oEx->setMessage($sMessage);
throw $oEx;
}
Expand Down Expand Up @@ -329,7 +329,7 @@ protected function _throwPaymentDataSaveException()
{
/** @var paypPayPalPlusPaymentDataSaveException $oEx */
$oEx = $this->getShop()->getNew('paypPayPalPlusPaymentDataSaveException');
$sMessage = $this->getShop()->translate('payp_PAYPALPLUS_ERROR_PAYMENT_DATA_NOT_SAVED');
$sMessage = $this->getShop()->translate('PAYP_PAYPALPLUS_ERROR_PAYMENT_DATA_NOT_SAVED');
$oEx->setMessage($sMessage);
throw $oEx;
}
Expand Down
4 changes: 2 additions & 2 deletions core/payppaypalplusevents.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ protected function _checkApiSettings()
$sSecret = $oPayPalConfig->getSecret();

if (empty($sClientId) || empty($sSecret)) {
$sMessage = $this->getShop()->translate('payp_PAYPALPLUS_ERROR_NO_USER_CREDENTIALS');
$sMessage = $this->getShop()->translate('PAYP_PAYPALPLUS_ERROR_NO_USER_CREDENTIALS');
/** @var oxException $oException */
$oException = oxNew('oxException');
$oException->setMessage($sMessage);
Expand Down Expand Up @@ -686,4 +686,4 @@ protected function _tableIndexExists($sTable = '', $sIndex = '')
return $bResult;
}

}
}

0 comments on commit d3820b3

Please sign in to comment.