-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
3,589 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
1.1.0, 2024-11-22: | ||
- Added compatibility with OpenMage and PHP latest versions. | ||
- [technical] Enabled some features by plugin variant. | ||
- Improve refund management. | ||
- Update payment method default logo. | ||
- Update list of supported payment means. | ||
- Update list of supported currencies. | ||
- Set return mode to POST by default. | ||
|
||
1.0.0, 2021-07-13: | ||
- Initial plugin version compatible with OpenMage 19 and 20. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
use Lyranetwork\Payzen\Model\Api\Form\Api as PayzenApi; | ||
|
||
/** | ||
* Custom renderer for the contact us element. | ||
*/ | ||
|
@@ -21,7 +23,7 @@ class Lyranetwork_Payzen_Block_Adminhtml_System_Config_Field_ContactUs extends M | |
*/ | ||
public function render(Varien_Data_Form_Element_Abstract $element) | ||
{ | ||
$comment = Lyranetwork_Payzen_Model_Api_Api::formatSupportEmails('[email protected]'); | ||
$comment = PayzenApi::formatSupportEmails('[email protected]'); | ||
$element->setComment($comment); | ||
|
||
return parent::render($element); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
app/code/community/Lyranetwork/Payzen/Block/Adminhtml/System/Config/Field/PluginDoc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* Copyright © Lyra Network. | ||
* This file is part of PayZen plugin for OpenMage. See COPYING.md for license details. | ||
* | ||
* @author Lyra Network (https://www.lyra.com/) | ||
* @copyright Lyra Network | ||
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
use Lyranetwork\Payzen\Model\Api\Form\Api as PayzenApi; | ||
|
||
/** | ||
* Custom renderer for the plugin documentation element. | ||
*/ | ||
class Lyranetwork_Payzen_Block_Adminhtml_System_Config_Field_PluginDoc extends Mage_Adminhtml_Block_System_Config_Form_Field | ||
{ | ||
/** | ||
* Render field HTML. | ||
* | ||
* @param Varien_Data_Form_Element_Abstract $element | ||
* | ||
* @return string | ||
*/ | ||
public function render(Varien_Data_Form_Element_Abstract $element) | ||
{ | ||
// Get documentation links. | ||
$languages = array( | ||
'fr' => 'Français', | ||
'en' => 'English', | ||
'es' => 'Español', | ||
'pt' => 'Português' | ||
// Complete when other languages are managed. | ||
); | ||
|
||
$docs = ""; | ||
foreach (PayzenApi::getOnlineDocUri() as $lang => $docUri) { | ||
$docs .= '<a style="margin-left: 10px; text-decoration: none; text-transform: uppercase;" href="' . $docUri . 'openmage/sitemap.html" target="_blank">' . $languages[$lang] . '</a>'; | ||
} | ||
|
||
$element->setComment($docs); | ||
|
||
return parent::render($element); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.