Skip to content

Commit 1a2e0ed

Browse files
committed
upd
1 parent 5204b6b commit 1a2e0ed

File tree

8 files changed

+34
-28
lines changed

8 files changed

+34
-28
lines changed

utf8/dev2fun.stripepayment/install/index.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/**
33
*
44
* @author darkfriend <[email protected]>
5-
* @copyright (c) 2017, darkfriend
6-
* @version 1.0.0
5+
* @copyright (c) 2017-2023, darkfriend
6+
* @version 1.4.0
77
*
88
*/
99
IncludeModuleLangFile(__FILE__);
@@ -19,30 +19,33 @@
1919
var $MODULE_DESCRIPTION;
2020
var $MODULE_GROUP_RIGHTS = "Y";
2121

22-
public function __construct(){
22+
public function __construct()
23+
{
2324
$path = str_replace("\\", "/", __FILE__);
2425
$path = substr($path, 0, strlen($path) - strlen("/index.php"));
2526
$arModuleVersion = include($path."/version.php");
2627
if (is_array($arModuleVersion) && array_key_exists("VERSION", $arModuleVersion)){
27-
$this->MODULE_VERSION = $arModuleVersion["VERSION"];
28-
$this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"];
28+
$this->MODULE_VERSION = $arModuleVersion["VERSION"];
29+
$this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"];
2930
} else {
30-
$this->MODULE_VERSION = '1.0.0';
31-
$this->MODULE_VERSION_DATE = '2017-03-28 15:00:00';
31+
$this->MODULE_VERSION = '1.4.0';
32+
$this->MODULE_VERSION_DATE = '2023-08-02 00:00:01';
3233
}
3334
$this->MODULE_NAME = GetMessage("DEV2FUN_MODULE_NAME_STRIPE");
3435
$this->MODULE_DESCRIPTION = GetMessage("DEV2FUN_MODULE_DESCRIPTION_STRIPE");
3536
$this->PARTNER_NAME = "dev2fun";
3637
$this->PARTNER_URI = "http://dev2fun.com/";
3738
}
3839

39-
public function DoInstall(){
40+
public function DoInstall()
41+
{
4042
global $APPLICATION;
4143
if(!check_bitrix_sessid()) return;
4244
$APPLICATION->IncludeAdminFile(GetMessage("STEP1"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$this->MODULE_ID."/install/step1.php");
4345
}
4446

45-
public function DoUninstall(){
47+
public function DoUninstall()
48+
{
4649
global $APPLICATION;
4750
if(!check_bitrix_sessid()) return;
4851
$APPLICATION->IncludeAdminFile(GetMessage("UNSTEP1"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$this->MODULE_ID."/install/unstep1.php");

utf8/dev2fun.stripepayment/install/sale_payment/stripe/.description.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
22
/**
33
* @author darkfriend <[email protected]>
4-
* @copyright (c) 2019-2022, darkfriend
4+
* @copyright (c) 2019-2023, darkfriend
55
* @version 1.3.12
66
*/
77

@@ -51,7 +51,7 @@
5151
'GROUP' => 'GENERAL_SETTINGS',
5252
"DEFAULT" => [
5353
'PROVIDER_KEY' => 'VALUE',
54-
'PROVIDER_VALUE' => implode(', ', array_keys($modeList)),
54+
'PROVIDER_VALUE' => implode(', ', array_keys(Dev2funModuleStripeClass::GetSupportModes())),
5555
],
5656
"TYPE" => "PROPERTY",
5757
],

utf8/dev2fun.stripepayment/install/sale_payment/stripe/webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
if(!empty($paySystem['PSA_PARAMS'])) {
34-
$paySystem['PSA_PARAMS'] = \unserialize($paySystem['PSA_PARAMS']);
34+
$paySystem['PSA_PARAMS'] = \unserialize($paySystem['PSA_PARAMS'], ['allowed_classes' => false]);
3535
}
3636

3737
\Bitrix\Main\Loader::includeModule('dev2fun.stripepayment');
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22
$arModuleVersion = [
3-
"VERSION" => "1.3.12",
4-
"VERSION_DATE" => "2022-04-01 02:00:00",
3+
"VERSION" => "1.4.0",
4+
"VERSION_DATE" => "2023-08-02 00:00:01",
55
];

win1251/dev2fun.stripepayment/install/index.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/**
33
*
44
* @author darkfriend <[email protected]>
5-
* @copyright (c) 2017, darkfriend
6-
* @version 1.0.0
5+
* @copyright (c) 2017-2023, darkfriend
6+
* @version 1.4.0
77
*
88
*/
99
IncludeModuleLangFile(__FILE__);
@@ -19,30 +19,33 @@
1919
var $MODULE_DESCRIPTION;
2020
var $MODULE_GROUP_RIGHTS = "Y";
2121

22-
public function __construct(){
22+
public function __construct()
23+
{
2324
$path = str_replace("\\", "/", __FILE__);
2425
$path = substr($path, 0, strlen($path) - strlen("/index.php"));
2526
$arModuleVersion = include($path."/version.php");
2627
if (is_array($arModuleVersion) && array_key_exists("VERSION", $arModuleVersion)){
27-
$this->MODULE_VERSION = $arModuleVersion["VERSION"];
28-
$this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"];
28+
$this->MODULE_VERSION = $arModuleVersion["VERSION"];
29+
$this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"];
2930
} else {
30-
$this->MODULE_VERSION = '1.0.0';
31-
$this->MODULE_VERSION_DATE = '2017-03-28 15:00:00';
31+
$this->MODULE_VERSION = '1.4.0';
32+
$this->MODULE_VERSION_DATE = '2023-08-02 00:00:01';
3233
}
3334
$this->MODULE_NAME = GetMessage("DEV2FUN_MODULE_NAME_STRIPE");
3435
$this->MODULE_DESCRIPTION = GetMessage("DEV2FUN_MODULE_DESCRIPTION_STRIPE");
3536
$this->PARTNER_NAME = "dev2fun";
3637
$this->PARTNER_URI = "http://dev2fun.com/";
3738
}
3839

39-
public function DoInstall(){
40+
public function DoInstall()
41+
{
4042
global $APPLICATION;
4143
if(!check_bitrix_sessid()) return;
4244
$APPLICATION->IncludeAdminFile(GetMessage("STEP1"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$this->MODULE_ID."/install/step1.php");
4345
}
4446

45-
public function DoUninstall(){
47+
public function DoUninstall()
48+
{
4649
global $APPLICATION;
4750
if(!check_bitrix_sessid()) return;
4851
$APPLICATION->IncludeAdminFile(GetMessage("UNSTEP1"), $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$this->MODULE_ID."/install/unstep1.php");

win1251/dev2fun.stripepayment/install/sale_payment/stripe/.description.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
22
/**
33
* @author darkfriend <[email protected]>
4-
* @copyright (c) 2019-2022, darkfriend
4+
* @copyright (c) 2019-2023, darkfriend
55
* @version 1.3.12
66
*/
77

@@ -51,7 +51,7 @@
5151
'GROUP' => 'GENERAL_SETTINGS',
5252
"DEFAULT" => [
5353
'PROVIDER_KEY' => 'VALUE',
54-
'PROVIDER_VALUE' => implode(', ', array_keys($modeList)),
54+
'PROVIDER_VALUE' => implode(', ', array_keys(Dev2funModuleStripeClass::GetSupportModes())),
5555
],
5656
"TYPE" => "PROPERTY",
5757
],

win1251/dev2fun.stripepayment/install/sale_payment/stripe/webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232

3333
if(!empty($paySystem['PSA_PARAMS'])) {
34-
$paySystem['PSA_PARAMS'] = \unserialize($paySystem['PSA_PARAMS']);
34+
$paySystem['PSA_PARAMS'] = \unserialize($paySystem['PSA_PARAMS'], ['allowed_classes' => false]);
3535
}
3636

3737
\Bitrix\Main\Loader::includeModule('dev2fun.stripepayment');
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22
$arModuleVersion = [
3-
"VERSION" => "1.3.12",
4-
"VERSION_DATE" => "2022-04-01 02:00:00",
3+
"VERSION" => "1.4.0",
4+
"VERSION_DATE" => "2023-08-02 00:00:01",
55
];

0 commit comments

Comments
 (0)