first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* Class przelewy24ajaxNoticesModuleFrontController
*
* @author Przelewy24
* @copyright Przelewy24
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html
*
*/
/**
* Class Przelewy24ajaxNoticesModuleFrontController
*/
class Przelewy24ajaxNoticesModuleFrontController extends ModuleFrontController
{
/**
* Init content.
*/
public function initContent()
{
parent::initContent();
$response = array('status' => 0);
if (!empty($_POST)) {
if (!empty(Tools::getValue('card_remember'))) {
$remember = (int)Tools::getValue('remember');
$customerId = Context::getContext()->customer->id;
if (!empty($customerId)) { // remember my card
$result = Przelewy24CustomerSetting::initialize($customerId)
->setIsCardRemembered($remember)
->save();
$response = array('status' => (int)$result);
}
}
}
Przelewy24Helper::renderJson($response);
}
}